diff options
author | bsam <bsam@FreeBSD.org> | 2012-10-09 00:17:22 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2012-10-09 00:17:22 +0800 |
commit | c2b0ea43743c26961ba8bf9037be9f96b421c0ed (patch) | |
tree | 926f4387c395f54a3f76618e9e0c601f883498bb /graphics | |
parent | 5e89244bb5009434b34248696a00e410bf187598 (diff) | |
download | freebsd-ports-gnome-c2b0ea43743c26961ba8bf9037be9f96b421c0ed.tar.gz freebsd-ports-gnome-c2b0ea43743c26961ba8bf9037be9f96b421c0ed.tar.zst freebsd-ports-gnome-c2b0ea43743c26961ba8bf9037be9f96b421c0ed.zip |
OPTIONify the port. Add an option RESSCRIPTS for PERL resource scripts
and switch it off by default. This reduces default dependencies
from 22 to 3. The port is useful to get PNG icons from a Windows *.ico
files while building ports (as a BUILD dependency). Resource scripts
are not used there. Bump PORTREVISION.
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/icoutils/Makefile | 26 | ||||
-rw-r--r-- | graphics/icoutils/files/extra-patch-Makefile.in | 11 | ||||
-rw-r--r-- | graphics/icoutils/files/extra-patch-configure.ac | 13 |
3 files changed, 44 insertions, 6 deletions
diff --git a/graphics/icoutils/Makefile b/graphics/icoutils/Makefile index f35a892c633b..705ab257f26e 100644 --- a/graphics/icoutils/Makefile +++ b/graphics/icoutils/Makefile @@ -3,6 +3,7 @@ PORTNAME= icoutils PORTVERSION= 0.30.0 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= SAVANNAH @@ -12,23 +13,36 @@ COMMENT= Convert/extract images in Microsoft Windows(R) icon/cursor files LICENSE= GPLv3 LIB_DEPENDS= png15:${PORTSDIR}/graphics/png -RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww USE_BZIP2= yes -USE_PERL5_RUN= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-nls MAKE_JOBS_SAFE= yes -MAN1= extresso.1 genresscript.1 icotool.1 wrestool.1 -PLIST_FILES= bin/extresso \ - bin/genresscript \ - bin/icotool \ +MAN1= icotool.1 wrestool.1 +PLIST_FILES= bin/icotool \ bin/wrestool CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib +OPTIONS_DEFINE= RESSCRIPTS +RESSCRIPTS_DESC= PERL resource scripts + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MRESSCRIPTS} +RUN_DEPENDS+= p5-libwww>=0:${PORTSDIR}/www/p5-libwww +USE_PERL5_RUN= yes +MAN1+= extresso.1 genresscript.1 +PLIST_FILES+= bin/extresso \ + bin/genresscript +.else +post-patch: +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-Makefile.in \ + ${FILESDIR}/extra-patch-configure.ac +.endif + .include <bsd.port.pre.mk> .if ${ARCH} == "sparc64" diff --git a/graphics/icoutils/files/extra-patch-Makefile.in b/graphics/icoutils/files/extra-patch-Makefile.in new file mode 100644 index 000000000000..6b0317c177c6 --- /dev/null +++ b/graphics/icoutils/files/extra-patch-Makefile.in @@ -0,0 +1,11 @@ +--- Makefile.in.orig 2012-10-08 14:19:17.000000000 +0400 ++++ Makefile.in 2012-10-08 14:19:35.000000000 +0400 +@@ -604,7 +604,7 @@ top_build_prefix = @top_build_prefix@ + top_builddir = @top_builddir@ + top_srcdir = @top_srcdir@ + ACLOCAL_AMFLAGS = -I m4 +-SUBDIRS = po lib common icotool wrestool extresso ++SUBDIRS = po lib common icotool wrestool + EXTRA_DIST = \ + data/icons/icon-linux_penguin-20x20-16c.png \ + data/icons/icon-linux_penguin-16x16-16c.png \ diff --git a/graphics/icoutils/files/extra-patch-configure.ac b/graphics/icoutils/files/extra-patch-configure.ac new file mode 100644 index 000000000000..bedeb3f768af --- /dev/null +++ b/graphics/icoutils/files/extra-patch-configure.ac @@ -0,0 +1,13 @@ +--- configure.ac.orig 2012-10-08 13:47:35.000000000 +0400 ++++ configure.ac 2012-10-08 13:47:59.000000000 +0400 +@@ -69,9 +69,5 @@ AC_CONFIG_FILES([Makefile + po/Makefile.in + lib/Makefile + common/Makefile +- icotool/Makefile +- wrestool/Makefile +- extresso/Makefile]) +-AC_CONFIG_FILES([extresso/extresso], [chmod +x extresso/extresso]) +-AC_CONFIG_FILES([extresso/genresscript], [chmod +x extresso/genresscript]) ++ icotool/Makefile) + AC_OUTPUT |