mirror of https://github.com/OpenTTD/OpenTTD
(svn r2328) There's no need for extra magic to detect libpng on FreeBSD
parent
2bc9764fcf
commit
ff52fc8267
5
Makefile
5
Makefile
|
@ -457,10 +457,6 @@ endif
|
||||||
# libpng config
|
# libpng config
|
||||||
ifdef WITH_PNG
|
ifdef WITH_PNG
|
||||||
CDEFS += -DWITH_PNG
|
CDEFS += -DWITH_PNG
|
||||||
# FreeBSD doesn't use libpng-config
|
|
||||||
ifdef FREEBSD
|
|
||||||
LIBS += -lpng
|
|
||||||
else
|
|
||||||
CFLAGS += $(shell libpng-config --cflags)
|
CFLAGS += $(shell libpng-config --cflags)
|
||||||
|
|
||||||
# seems like older libpng versions are broken and need this
|
# seems like older libpng versions are broken and need this
|
||||||
|
@ -476,7 +472,6 @@ else
|
||||||
LIBS += $(shell libpng-config --L_opts $(PNGCONFIG_FLAGS))
|
LIBS += $(shell libpng-config --L_opts $(PNGCONFIG_FLAGS))
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
|
|
||||||
# enables/disables assert()
|
# enables/disables assert()
|
||||||
ifdef DISABLE_ASSERTS
|
ifdef DISABLE_ASSERTS
|
||||||
|
|
|
@ -66,17 +66,7 @@ WITH_NETWORK:=1
|
||||||
WITH_SDL:=$(shell $(SDL-CONFIG) --version 2>/dev/null)
|
WITH_SDL:=$(shell $(SDL-CONFIG) --version 2>/dev/null)
|
||||||
|
|
||||||
# libpng detection
|
# libpng detection
|
||||||
ifdef FREEBSD
|
|
||||||
# a little hack was needed for FreeBSD because it misses libpng-config
|
|
||||||
WITH_PNG:=$(shell ls /usr/lib | grep "libpng" 2>/dev/null) $(shell \
|
|
||||||
ls /usr/local/lib | grep "libpng" 2>/dev/null)
|
|
||||||
ifdef WITH_PNG
|
|
||||||
# makes the flag look nicer in makefile.config
|
|
||||||
WITH_PNG:=1
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
WITH_PNG:=$(shell libpng-config --version 2>/dev/null)
|
WITH_PNG:=$(shell libpng-config --version 2>/dev/null)
|
||||||
endif
|
|
||||||
|
|
||||||
ifdef WITH_PNG
|
ifdef WITH_PNG
|
||||||
# LibPNG depends on Zlib
|
# LibPNG depends on Zlib
|
||||||
|
|
Loading…
Reference in New Issue