mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
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.
This commit is contained in:
parent
b80a374bd7
commit
f545ccf085
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=305543
@ -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"
|
||||
|
11
graphics/icoutils/files/extra-patch-Makefile.in
Normal file
11
graphics/icoutils/files/extra-patch-Makefile.in
Normal file
@ -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 \
|
13
graphics/icoutils/files/extra-patch-configure.ac
Normal file
13
graphics/icoutils/files/extra-patch-configure.ac
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user