mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
graphics/gimp-gmic-plugin: simplify port a bit
- utilize USES=localbase - simplify BASH options dependency - further convert to options helpers and drop including of bsd.port.options.mk
This commit is contained in:
parent
71a250fe6f
commit
abd6b3b29d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411675
@ -21,11 +21,11 @@ LIB_DEPENDS= libGraphicsMagick++.so:${PORTSDIR}/graphics/GraphicsMagick \
|
||||
|
||||
OPTIONS_DEFINE= BASH
|
||||
OPTIONS_SUB= yes
|
||||
BASH_RUN_DEPENDS= ${LOCALBASE}/bin/bash:${PORTSDIR}/shells/bash
|
||||
BASH_RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
|
||||
|
||||
USES= gmake pkgconfig
|
||||
USES= gmake localbase pkgconfig
|
||||
USE_GCC= yes
|
||||
USE_GNOME= gtk20
|
||||
USE_XORG= x11 xext xrandr
|
||||
@ -33,8 +33,6 @@ USE_XORG= x11 xext xrandr
|
||||
PLUGIN_DIR?= libexec/gimp/2.2/plug-ins
|
||||
PLIST_SUB+= PLUGIN_DIR=${PLUGIN_DIR}
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CFLAGS:= ${CFLAGS:N-O*:N-pipe}
|
||||
CXXFLAGS:= ${CXXFLAGS:N-O*:N-pipe}
|
||||
|
||||
@ -46,8 +44,6 @@ PLIST_FILES= bin/gmic \
|
||||
EXAMPLESDIR= ${PREFIX}/share/examples/${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
|
||||
PORTEXAMPLES= gmic_in_script.scm gmic_use_lib.cpp
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's#/usr/X11R6#${PREFIX}#g' \
|
||||
${WRKSRC}/Makefile
|
||||
@ -59,10 +55,9 @@ do-install:
|
||||
${INSTALL_MAN} ${WRKSRC}/../man/gmic.1.gz ${STAGEDIR}${MAN1PREFIX}/man/man1
|
||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${PORTEXAMPLES:S|^|${WRKSRC}/|} ${STAGEDIR}${EXAMPLESDIR}
|
||||
.if ${PORT_OPTIONS:MBASH}
|
||||
do-install-BASH-on:
|
||||
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/../resources/gmic_bashcompletion.sh \
|
||||
${STAGEDIR}${PREFIX}/etc/bash_completion.d
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user