diff options
author | cy <cy@FreeBSD.org> | 2002-09-14 01:39:27 +0000 |
---|---|---|
committer | cy <cy@FreeBSD.org> | 2002-09-14 01:39:27 +0000 |
commit | 110ed4b6a00df12782f165bf2c8e01ec59d9f49f (patch) | |
tree | 71c583357795cbc025470fd9928428496faaeda2 /x11-wm/fvwm2-devel | |
parent | a61ad777e520b4264d72fba2ee6d0def17c43850 (diff) | |
download | FreeBSD-ports-110ed4b6a00df12782f165bf2c8e01ec59d9f49f.zip FreeBSD-ports-110ed4b6a00df12782f165bf2c8e01ec59d9f49f.tar.gz |
Enable PNG support.
PR: 42721
Submitted by: adam@vectors.cx
Diffstat (limited to 'x11-wm/fvwm2-devel')
-rw-r--r-- | x11-wm/fvwm2-devel/Makefile | 10 | ||||
-rw-r--r-- | x11-wm/fvwm2-devel/files/patch-configure | 20 |
2 files changed, 29 insertions, 1 deletions
diff --git a/x11-wm/fvwm2-devel/Makefile b/x11-wm/fvwm2-devel/Makefile index 976080d..979ff2c 100644 --- a/x11-wm/fvwm2-devel/Makefile +++ b/x11-wm/fvwm2-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= fvwm PORTVERSION= 2.5.3 +PORTREVISION= 1 CATEGORIES= x11-wm MASTER_SITES= ftp://ftp.fvwm.org/pub/fvwm/version-2/ \ http://www.fvwm.org/generated/icon_download/ @@ -46,6 +47,12 @@ CONFIGURE_ARGS+= --disable-sm CONFIGURE_ARGS+= --disable-shape .endif +.if !defined(WITHOUT_PNG) +LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png +CONFIGURE_ARGS+= --with-png --with-png-includes=${LOCALBASE}/include \ + --with-png-library=${LOCALBASE}/lib +.endif + PLIST_SUB+= FVWM_VERSION="${PORTVERSION}" .if ${HAVE_GNOME:Mimlib}!="" @@ -77,7 +84,8 @@ post-extract: post-patch: @${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},' \ - ${WRKSRC}/modules/FvwmM4/FvwmM4.c + ${WRKSRC}/modules/FvwmM4/FvwmM4.c \ + ${WRKSRC}/configure post-install: @${INSTALL_DATA} ${WRKSRC}/sample.fvwmrc/system.fvwm2rc \ diff --git a/x11-wm/fvwm2-devel/files/patch-configure b/x11-wm/fvwm2-devel/files/patch-configure new file mode 100644 index 0000000..a677cb8 --- /dev/null +++ b/x11-wm/fvwm2-devel/files/patch-configure @@ -0,0 +1,20 @@ +--- configure.orig Sun Aug 25 04:31:08 2002 ++++ configure Fri Sep 13 18:29:58 2002 +@@ -3758,7 +3758,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-lpng ${png_LIBS} -lz -lm $LIBS" ++LIBS="-L%%LOCALBASE%%/lib -lpng ${png_LIBS} -lz -lm $LIBS" + cat > conftest.$ac_ext <<EOF + #line 3764 "configure" + #include "confdefs.h" +@@ -3921,7 +3921,7 @@ + #define HAVE_PNG 1 + EOF + +- png_LIBS="-lpng -lz" ++ png_LIBS="-L%%LOCALBASE%%/lib -lpng -lz" + problem_png="" + else + with_png=no |