Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2012 02:29:45 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308300 - head/games/fillets-ng
Message-ID:  <201212050229.qB52Tjk3037898@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Wed Dec  5 02:29:44 2012
New Revision: 308300
URL: http://svnweb.freebsd.org/changeset/ports/308300

Log:
  - OptionsNG
  - Trim header
  - Switch to dynamic plist
  
  Feature safe:	yes

Deleted:
  head/games/fillets-ng/pkg-plist
Modified:
  head/games/fillets-ng/Makefile

Modified: head/games/fillets-ng/Makefile
==============================================================================
--- head/games/fillets-ng/Makefile	Wed Dec  5 02:27:07 2012	(r308299)
+++ head/games/fillets-ng/Makefile	Wed Dec  5 02:29:44 2012	(r308300)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:    fillets-ng
-# Date created:         11 Oct 2005
-# Whom:                 Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	fillets-ng
 PORTVERSION=	1.0.1
@@ -26,6 +22,9 @@ LDFLAGS+=	-L${LUA_LIBDIR}
 CONFIGURE_ARGS=	--datadir="${DATADIR}" --with-lua="${LOCALBASE}"
 MAKE_JOBS_SAFE=	yes
 PORTDOCS=	*
+PORTDATA=	*
+
+PLIST_FILES=	bin/fillets
 
 DATAVERSION=	1.0.0
 
@@ -40,11 +39,11 @@ DESKTOP_ENTRIES="Fish Fillets - Next Gen
 		"Game;LogicGame;" \
 		false
 
-OPTIONS=	FRIBIDI	"Enable fribidi support" on
+OPTIONS_DEFINE=	FRIBIDI
 
 .include <bsd.port.pre.mk>
 
-.if !defined(WITHOUT_FRIBIDI)
+.if ${PORT_OPTIONS:MFRIBIDI}
 LIB_DEPENDS+=	fribidi.3:${PORTSDIR}/converters/fribidi
 .endif
 
@@ -53,17 +52,19 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|^\(AM_CPPFLAGS.*(datadir)\)/.*|\1"\\"|' \
 		${WRKSRC}/src/gengine/Makefile.in
-.if defined(WITHOUT_FRIBIDI)
+.if ! ${PORT_OPTIONS:MFRIBIDI}
 	@${REINPLACE_CMD} -e \
 		's|FRIBIDI_CFLAGS=$$pkg_cv_FRIBIDI_CFLAGS||; s|FRIBIDI_LIBS=$$pkg_cv_FRIBIDI_LIBS||; s|have_fribidi="yes"|have_fribidi="no"|' \
 		${WRKSRC}/configure
 .endif
 
 post-install:
+.if !defined(NOPORTDATA)
 	${MKDIR} ${DATADIR}
 	cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION} && \
 		${COPYTREE_SHARE} "font	images music script sound" ${DATADIR}
-.if !defined(NOPORTDOCS)
+.endif
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	@cd ${WRKDIR}/${PORTNAME}-data-${DATAVERSION}/doc; \
 		${COPYTREE_SHARE} "*" ${DOCSDIR}



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