aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-15 05:50:13 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-15 05:50:13 +0800
commit3e2c860210b8d21dc97fea77a0fea9f9cac1dbfb (patch)
tree6d4461f3128ed18b4b8db70ec78874c2d65efd41 /x11-toolkits
parent522bb144559ff99b5dcf8226ea80c41a7951b3fd (diff)
downloadfreebsd-ports-gnome-3e2c860210b8d21dc97fea77a0fea9f9cac1dbfb.tar.gz
freebsd-ports-gnome-3e2c860210b8d21dc97fea77a0fea9f9cac1dbfb.tar.zst
freebsd-ports-gnome-3e2c860210b8d21dc97fea77a0fea9f9cac1dbfb.zip
- Add LICENSE
- Switch to options helpers - Simplify installation - Switch to pkg-plist
Diffstat (limited to 'x11-toolkits')
-rw-r--r--x11-toolkits/gai/Makefile25
-rw-r--r--x11-toolkits/gai/pkg-plist6
2 files changed, 16 insertions, 15 deletions
diff --git a/x11-toolkits/gai/Makefile b/x11-toolkits/gai/Makefile
index 88543817d442..00bffb3ce314 100644
--- a/x11-toolkits/gai/Makefile
+++ b/x11-toolkits/gai/Makefile
@@ -10,6 +10,9 @@ MASTER_SITES= SF/${PORTNAME}/GAI%20-%20Library/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= General Applet Interface Library
+LICENSE= LGPL20+
+LICENSE_FILE= ${WRKSRC}/COPYING.LIB
+
LIB_DEPENDS= libgtkglext-x11-1.0.so:${PORTSDIR}/x11-toolkits/gtkglext
USES= gettext-tools pkgconfig tar:bzip2
@@ -21,28 +24,20 @@ CONFIGURE_ENV= SDLCONF=${SDL_CONFIG}
CONFIGURE_ARGS= --disable-gnome
CPPFLAGS+= `pkg-config --cflags libgnomeui-2.0`
-PLIST_FILES= include/gai/gai.h lib/libgai.so.${PORTVERSION} \
- lib/libgai.so.0 lib/libgai.so libdata/pkgconfig/gai.pc \
- share/locale/de/LC_MESSAGES/gai.mo
PORTDOCS= *
+PORTEXAMPLES= *
USE_LDCONFIG= yes
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e "s|sdl-config --|${SDL_CONFIG} --|g; \
s|/usr/X11R6|${LOCALBASE}|g" ${WRKSRC}/configure
-post-install:
- cd ${WRKSRC}/docs && \
- ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DOCSDIR}/{}" \; && \
- ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DOCSDIR}/{}" \;
-.for dir in docking examples templates
- cd ${WRKSRC} && \
- ${FIND} ${dir} -type d -exec ${MKDIR} "${STAGEDIR}${EXAMPLESDIR}/{}" \; && \
- ${FIND} ${dir} -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${EXAMPLESDIR}/{}" \;
-.endfor
- @${FIND} ${STAGEDIR}${EXAMPLESDIR} -type f | \
- ${SED} "s,^${STAGEDIR}${PREFIX}/,," >> ${TMPPLIST}
+post-install-DOCS-on:
+ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
+
+post-install-EXAMPLES-on:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "docking examples templates" ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
diff --git a/x11-toolkits/gai/pkg-plist b/x11-toolkits/gai/pkg-plist
new file mode 100644
index 000000000000..51528ac61b82
--- /dev/null
+++ b/x11-toolkits/gai/pkg-plist
@@ -0,0 +1,6 @@
+include/gai/gai.h
+lib/libgai.so
+lib/libgai.so.0
+lib/libgai.so.0.5.10
+libdata/pkgconfig/gai.pc
+share/locale/de/LC_MESSAGES/gai.mo