1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/graphics/gd/files/Makefile.bsd
Dirk Meyer b81ee0e870 - update to 2.0.34
- new MASTER_SITES
- use smaller distfile (.bz2)
- new option WITH_FONTCONFIG
- new option WITH_ICONV
- removed gdImageCreateFromGifSource
  this breaks old version of php*-gd
PR:		109149
Submitted by:	Phil Oleson

- fix gdtest
- remove gdImageLzw*, gdImageBigGif*
  this breaks old version of perl5-GD
- extend feature info
2007-02-22 20:33:06 +00:00

53 lines
2.0 KiB
Makefile

# Makefile
PROGS= pngtogd pngtogd2 gdtopng gd2topng gd2copypal gdparttopng webpng \
gd2togif gdcmpgif giftogd2 annotate
TESTS= gdtest gddemo gd2time gdtestft testac fontsizetest fontwheeltest
SRCS= gd.c gd_gd.c gd_gd2.c gd_io.c gd_io_dp.c gd_io_file.c \
gd_io_ss.c gd_jpeg.c gd_png.c gd_ss.c gd_topal.c \
gd_wbmp.c gdcache.c gdfontg.c gdfontl.c gdfontmb.c \
gdfonts.c gdfontt.c gdft.c gdfx.c gdhelpers.c gdhelpers.h \
gdkanji.c gdtables.c gdxpm.c gd_security.c \
wbmp.c gd_gif_in.c gd_gif_out.c
MAKEDIR=/usr/share/mk
LIB=gd
SHLIB_MAJOR=4
SHLIB_MINOR=0
INCS= gd.h gd_io.h gdcache.h gdfontg.h gdfontl.h gdfontmb.h \
gdfonts.h gdfontt.h entities.h
SHLIB_NAME!= ${MAKE} -V SHLIB_NAME LIB=${LIB} \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} -f ${MAKEDIR}/bsd.lib.mk
CFLAGS+= -I${.CURDIR} -I${LOCALBASE}/include/freetype2/freetype \
-I${LOCALBASE}/include/freetype2 -I${LOCALBASE}/include \
-DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE -DHAVE_LIBZ \
${CPPFLAGS}
LDADD= -L${LOCALBASE}/lib -lpng -lz -ljpeg -lfreetype -lm \
${LDFLAGS}
# The package comes with tests, but without any sort of test-harness,
# to run them all automaticly. So building tests is disabled here. -mi
all: lib${LIB}.a ${SHLIB_NAME} ${PROGS} # ${TESTS}
lib${LIB}.a ${SHLIB_NAME}: ${SRCS}
${MAKE} LIB=${LIB} SRCS="${SRCS}" \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
CFLAGS="${CFLAGS}" -ECFLAGS LDADD="${LDADD}" \
-f ${MAKEDIR}/bsd.lib.mk ${.TARGET}
${PROGS} ${TESTS}: ${SHLIB_NAME} lib${LIB}.a
${MAKE} PROG=${.TARGET} NO_MAN=1 NOMAN=1 LDADD="-L${.CURDIR} -lgd" \
CFLAGS="${CFLAGS}" -ECFLAGS -f ${MAKEDIR}/bsd.prog.mk
install:
mkdir -p ${PREFIX}/include
${MAKE} LIB=${LIB} LIBDIR=${PREFIX}/lib NOPROFILE=true \
SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR} \
-f ${MAKEDIR}/bsd.lib.mk install
cd ${.CURDIR} && ${BSD_INSTALL_DATA} ${INCS} ${PREFIX}/include
cd ${.CURDIR} && ${BSD_INSTALL_PROGRAM} ${PROGS} ${PREFIX}/bin/
${BSD_INSTALL_SCRIPT} ${.CURDIR}/bdftogd ${PREFIX}/bin/
.if exists(${.CURDIR}/Makefile.fonts)
.include "Makefile.fonts"
.endif