- update to 1.5.8.1

- use options helper
- support staging
This commit is contained in:
Ruslan Makhmatkhanov 2013-12-23 10:42:08 +00:00
parent e222909e67
commit b492b10f51
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337236
3 changed files with 16 additions and 23 deletions

View file

@ -1,8 +1,7 @@
# $FreeBSD$
PORTNAME= gmic
PORTVERSION= 1.5.7.1
PORTREVISION= 2
PORTVERSION= 1.5.8.1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME} \
SF/${PORTNAME}/old
@ -21,7 +20,9 @@ LIB_DEPENDS= libGraphicsMagick++.so:${PORTSDIR}/graphics/GraphicsMagick13 \
libgimp-2.0.so:${PORTSDIR}/graphics/gimp-app
OPTIONS_DEFINE= BASH
OPTIONS_SUB= yes
BASH_DESC= Install programmable completions for Bash
BASH_RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
OPTIONS_EXCLUDE=NLS DOCS
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
@ -38,31 +39,27 @@ LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
MAN1= gmic.1
MANCOMPRESSED= yes
NO_STAGE= yes
PLIST_FILES= bin/gmic \
man/man1/gmic.1.gz \
%%BASH%%etc/bash_completion.d/gmic_bashcompletion.sh \
%%PLUGIN_DIR%%/gmic_gimp
PLIST_DIRSTRY= %%PLUGIN_DIR%%
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBASH}
RUN_DEPENDS+= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
PLIST_SUB+= BASH=""
.else
PLIST_SUB+= BASH="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
${WRKSRC}/Makefile
do-install:
@${MKDIR} ${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${MAN1PREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic_gimp ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
${INSTALL_PROGRAM} ${WRKSRC}/gmic ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
.if ${PORT_OPTIONS:MBASH}
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
${INSTALL_SCRIPT} ${WRKSRC}/gmic_bashcompletion.sh \
${PREFIX}/etc/bash_completion.d/gmic_bashcompletion.sh
${STAGEDIR}${PREFIX}/etc/bash_completion.d
.endif
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (gmic_1.5.7.1.tar.gz) = bc55fe0309c08fd4b4d97c37704db77965316c818c169ac573b8b12a5a44d42f
SIZE (gmic_1.5.7.1.tar.gz) = 2174947
SHA256 (gmic_1.5.8.1.tar.gz) = 2b0b813253e8c409a8535d350894245b35836cd849af31986055e0a09b8d1cea
SIZE (gmic_1.5.8.1.tar.gz) = 2265467

View file

@ -1,4 +0,0 @@
bin/gmic
%%BASH%%etc/bash_completion.d/gmic_bashcompletion.sh
%%PLUGIN_DIR%%/gmic_gimp
@dirrmtry %%PLUGIN_DIR%%