diff options
author | pawel <pawel@FreeBSD.org> | 2013-12-21 05:48:14 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2013-12-21 05:48:14 +0800 |
commit | e3b1aa69a453e6cb81453634b24e1c6c2e395249 (patch) | |
tree | 8a9dcf85d9bc2eee6e44e74aec4cfeb421bfbeba /deskutils/tpb | |
parent | aeddb9d11f3e32b6b2069f3e46b8f94e2e4f485a (diff) | |
download | freebsd-ports-gnome-e3b1aa69a453e6cb81453634b24e1c6c2e395249.tar.gz freebsd-ports-gnome-e3b1aa69a453e6cb81453634b24e1c6c2e395249.tar.zst freebsd-ports-gnome-e3b1aa69a453e6cb81453634b24e1c6c2e395249.zip |
- Fix build with clang
- Add LICENSE
- Define OPTIONS, use options subs and helpers
- Support staging
PR: ports/184889
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'deskutils/tpb')
-rw-r--r-- | deskutils/tpb/Makefile | 47 | ||||
-rw-r--r-- | deskutils/tpb/pkg-plist | 1 |
2 files changed, 24 insertions, 24 deletions
diff --git a/deskutils/tpb/Makefile b/deskutils/tpb/Makefile index f320f52c2855..2cb0a2b13351 100644 --- a/deskutils/tpb/Makefile +++ b/deskutils/tpb/Makefile @@ -5,45 +5,44 @@ PORTNAME= tpb PORTVERSION= 0.6.4 PORTREVISION= 10 CATEGORIES= deskutils -MASTER_SITES= ${MASTER_SITE_SAVANNAH} -MASTER_SITE_SUBDIR= ${PORTNAME} +MASTER_SITES= SAVANNAH MAINTAINER= ports@FreeBSD.org COMMENT= On-Screen-Display for hotkeys of IBM ThinkPads +LICENSE= GPLv2 + LIB_DEPENDS= libxosd.so:${PORTSDIR}/misc/xosd +OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes + ONLY_FOR_ARCHS= i386 amd64 +USES= bison gmake iconv pkgconfig GNU_CONFIGURE= yes -USES= bison iconv gmake pkgconfig - CONFIGURE_ARGS= ${ICONV_CONFIGURE_ARG} -MAN1= tpb.1 - -NO_STAGE= yes -.include <bsd.port.options.mk> +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALABASE}/lib -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif +NLS_USES= gettext +NLS_CONFIGURE_OFF= --disable-nls post-patch: - @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g; \ - s|%%LOCALBASE%%|${LOCALBASE}|g' \ - ${WRKSRC}/src/cfg.h \ - ${WRKSRC}/man/tpb.1 +.for i in man/tpb.1 src/cfg.h + @${REINPLACE_CMD} -e \ + 's|%%PREFIX%%|${PREFIX}|g ; \ + s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/${i} +.endfor + @${REINPLACE_CMD} -e \ + 's|void test()||' ${WRKSRC}/configure post-install: - ${INSTALL_DATA} ${WRKSRC}/doc/tpbrc ${PREFIX}/etc/tpbrc.default -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_SCRIPT} ${WRKSRC}/doc/callback_example.sh ${DOCSDIR} -.endif + (cd ${WRKSRC}/doc && ${INSTALL_DATA} tpbrc \ + ${STAGEDIR}${PREFIX}/etc/tpbrc.default) + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${INSTALL_DATA} callback_example.sh \ + ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> diff --git a/deskutils/tpb/pkg-plist b/deskutils/tpb/pkg-plist index 8f7c3533a879..b080836e7ce0 100644 --- a/deskutils/tpb/pkg-plist +++ b/deskutils/tpb/pkg-plist @@ -1,5 +1,6 @@ bin/tpb etc/tpbrc.default +man/man1/tpb.1.gz %%PORTDOCS%%%%DOCSDIR%%/callback_example.sh %%NLS%%share/locale/da/LC_MESSAGES/tpb.mo %%NLS%%share/locale/de/LC_MESSAGES/tpb.mo |