diff options
author | dinoex <dinoex@FreeBSD.org> | 2005-09-27 16:47:00 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2005-09-27 16:47:00 +0800 |
commit | c8fb96d83344ee955c2257942d2a30cfd02d33bc (patch) | |
tree | 6da1ff38d618f3448ca8c5296d30cca4b8fc7e00 /graphics/gd | |
parent | 4d48cdb08d4bcdcba037d28bd8201ed401cb0dc8 (diff) | |
download | freebsd-ports-gnome-c8fb96d83344ee955c2257942d2a30cfd02d33bc.tar.gz freebsd-ports-gnome-c8fb96d83344ee955c2257942d2a30cfd02d33bc.tar.zst freebsd-ports-gnome-c8fb96d83344ee955c2257942d2a30cfd02d33bc.zip |
- add gdlib-config
PR: 86574
Diffstat (limited to 'graphics/gd')
-rw-r--r-- | graphics/gd/Makefile | 21 | ||||
-rw-r--r-- | graphics/gd/pkg-plist | 1 |
2 files changed, 21 insertions, 1 deletions
diff --git a/graphics/gd/Makefile b/graphics/gd/Makefile index 4e79c0b78454..97750391baa3 100644 --- a/graphics/gd/Makefile +++ b/graphics/gd/Makefile @@ -7,7 +7,7 @@ PORTNAME= gd PORTVERSION= 2.0.33 -PORTREVISION?= 1 +PORTREVISION?= 2 PORTEPOCH= 1 CATEGORIES+= graphics MASTER_SITES= http://www.boutell.com/gd/http/ \ @@ -34,6 +34,11 @@ CPPFLAGS+= -DHAVE_FT2BUILD_H USE_XPM= yes CPPFLAGS+= -I${X11BASE}/include/X11 -I${X11BASE}/include -DHAVE_LIBXPM LDFLAGS+= -L${X11BASE}/lib -lXpm -lX11 +LDFLAGS2= -L${PREFIX}/lib -L${LOCALBASE}/lib -L${X11BASE}/lib +FEATURES= GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_GIF +.else +LDFLAGS2= -L${PREFIX}/lib -L${LOCALBASE}/lib +FEATURES= GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_GIF .endif .if defined(GD_FONTS) @@ -51,9 +56,23 @@ pre-everything:: post-extract: @${CP} ${FILESDIR}/g* ${WRKSRC} +post-configure: + ${SED} -e 's|@libdir@|${PREFIX}/lib|' \ + -e 's|@includedir@|${PREFIX}/include|' \ + -e 's|@VERSION@|${PORTVERSION}|' \ + -e 's|@GDLIB_MAJOR@|${PORTVERSION:C/([0-9]*).*/\1/1}|' \ + -e 's|@GDLIB_MINOR@|${PORTVERSION:C/[0-9]*[.]([0-9]).*/\1/1}|' \ + -e 's|@GDLIB_REVISION@|${PORTVERSION:C/.*[.]([0-9]*)/\1/1}|' \ + -e 's|@LDFLAGS@|${LDFLAGS2}|' \ + -e 's|@LIBS@|-lgd|' \ + -e 's|@FEATURES@|${FEATURES}|' \ + ${WRKSRC}/config/gdlib-config.in \ + > ${WRKDIR}/gdlib-config + post-install: ${INSTALL_DATA} ${WRKSRC}/gdfx.h ${WRKSRC}/gdhelpers.h \ ${PREFIX}/include/ + ${INSTALL_SCRIPT} ${WRKDIR}/gdlib-config ${PREFIX}/bin/ .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/index.html ${DOCSDIR} diff --git a/graphics/gd/pkg-plist b/graphics/gd/pkg-plist index 549dc16325ad..0cbf1ee52499 100644 --- a/graphics/gd/pkg-plist +++ b/graphics/gd/pkg-plist @@ -4,6 +4,7 @@ bin/gd2copypal bin/gd2togif bin/gd2topng bin/gdcmpgif +bin/gdlib-config bin/gdparttopng bin/gdtopng bin/giftogd2 |