[Midnightbsd-cvs] mports [19098] trunk/Mk: add fonts and metaport extensions from freebsd

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat May 23 22:43:06 EDT 2015


Revision: 19098
          http://svnweb.midnightbsd.org/mports/?rev=19098
Author:   laffer1
Date:     2015-05-23 22:43:05 -0400 (Sat, 23 May 2015)
Log Message:
-----------
add fonts and metaport extensions from freebsd

Modified Paths:
--------------
    trunk/Mk/bsd.mport.mk

Added Paths:
-----------
    trunk/Mk/extensions/fonts.mk
    trunk/Mk/extensions/metaport.mk

Modified: trunk/Mk/bsd.mport.mk
===================================================================
--- trunk/Mk/bsd.mport.mk	2015-05-24 02:41:25 UTC (rev 19097)
+++ trunk/Mk/bsd.mport.mk	2015-05-24 02:43:05 UTC (rev 19098)
@@ -359,10 +359,11 @@
 		linux_rpm linux_apps xorg fortran \
 		gcc fmake fpc gmake bison local perl5 openssl \
 		apache autotools bdb cmake cpe display dos2unix \
-		efl emacs execinfo fam fuse \
+		efl emacs execinfo fam fonts fuse \
 		gecko gettext gettext-tools gettext-runtime \
 		gnome gnustep gstreamer iconv imake \
-		ldap libtool lua makeself motif mysql ncurses ocaml openal \
+		ldap libtool lua \
+		metaport makeself motif mysql ncurses ocaml openal \
 		pgsql php python java qt ruby scons sdl sqlite \
 		tar tcl tex wx xfce zip
 
@@ -551,9 +552,12 @@
 		WWWDIR=${WWWDIR} ETCDIR=${ETCDIR} \
 		DESTDIR=${DESTDIR} TARGETDIR=${TARGETDIR}
 
-PLIST_REINPLACE+=	stopdaemon rmtry
+PLIST_REINPLACE+=	group mode owner stopdaemon rmtry
 PLIST_REINPLACE_RMTRY=s!^@rmtry \(.*\)!@unexec rm -f %D/\1 2>/dev/null || true!
 PLIST_REINPLACE_STOPDAEMON=s!^@stopdaemon \(.*\)!@unexec %D/etc/rc.d/\1 forcestop 2>/dev/null || true!
+PLIST_REINPLACE_owner=s!^@owner \(.*\)!@exec chown \1 %D
+PLIST_REINPLACE_group=s!^@group \(.*\)!@exec chgroup \1 %D
+PLIST_REINPLACE_mode=s!^@mode \(.*\)!@exec chmod \1 %D
 
 # kludge to strip trailing whitespace from CFLAGS;
 # sub-configure will not # survive double space

Added: trunk/Mk/extensions/fonts.mk
===================================================================
--- trunk/Mk/extensions/fonts.mk	                        (rev 0)
+++ trunk/Mk/extensions/fonts.mk	2015-05-24 02:43:05 UTC (rev 19098)
@@ -0,0 +1,22 @@
+# $MidnightBSD$
+#
+# handle fonts
+# Feature:	fonts
+# Usage:	USES=fonts
+
+.if !defined(_INCLUDE_USES_FONTS_MK)
+.if !empty(fonts_ARGS)
+IGNORE=	USES=fonts - expecting no arguments
+.endif
+
+RUN_DEPENDS+=	fc-cache:${PORTSDIR}/x11-fonts/fontconfig \
+		mkfontdir:${PORTSDIR}/x11-fonts/mkfontdir \
+		mkfontscale:${PORTSDIR}/x11-fonts/mkfontscale
+
+FONTNAME?=	${PORTNAME}
+FONTSDIR?=	${PREFIX}/share/fonts/${FONTNAME}
+PLIST_FILES+=	"@fcfontsdir ${FONTSDIR}"
+SUB_LIST+=	FONTSDIR="${FONTSDIR}"
+PLIST_SUB+=	FONTSDIR="${FONTSDIR}"
+.endif
+


Property changes on: trunk/Mk/extensions/fonts.mk
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/Mk/extensions/metaport.mk
===================================================================
--- trunk/Mk/extensions/metaport.mk	                        (rev 0)
+++ trunk/Mk/extensions/metaport.mk	2015-05-24 02:43:05 UTC (rev 19098)
@@ -0,0 +1,22 @@
+# $MidnightBSD$
+# $FreeBSD: head/Mk/Uses/metaport.mk 382933 2015-04-01 17:59:57Z bapt $
+#
+# Sets the default variables to handle metaports
+#
+# Feature:	metaport
+# Usage:	USES=metaport
+#
+# Take no arguments
+
+.if !defined(_INCLUDE_USES_METAPORT_MK)
+_INCLUDE_USES_METAPORT_MK=	yes
+
+MASTER_SITES=	#
+DISTFILES=	#
+EXTRACT_ONLY=	#
+NO_BUILD=	yes
+NO_INSTALL=	yes
+NO_MTREE=	yes
+NO_ARCH=	yes
+
+.endif


Property changes on: trunk/Mk/extensions/metaport.mk
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list