Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2013 21:48:15 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r337092 - head/deskutils/tpb
Message-ID:  <201312202148.rBKLmFxK059843@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Dec 20 21:48:14 2013
New Revision: 337092
URL: http://svnweb.freebsd.org/changeset/ports/337092

Log:
  - 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>

Modified:
  head/deskutils/tpb/Makefile
  head/deskutils/tpb/pkg-plist   (contents, props changed)

Modified: head/deskutils/tpb/Makefile
==============================================================================
--- head/deskutils/tpb/Makefile	Fri Dec 20 21:17:13 2013	(r337091)
+++ head/deskutils/tpb/Makefile	Fri Dec 20 21:48:14 2013	(r337092)
@@ -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>

Modified: head/deskutils/tpb/pkg-plist
==============================================================================
--- head/deskutils/tpb/pkg-plist	Fri Dec 20 21:17:13 2013	(r337091)
+++ head/deskutils/tpb/pkg-plist	Fri Dec 20 21:48:14 2013	(r337092)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312202148.rBKLmFxK059843>