ports/183160: [PATCH] audio/mp3info: Fix WITH=GTK2, Stagify, Use new options.
Mathieu Arnold
mat at FreeBSD.org
Mon Oct 21 16:40:00 UTC 2013
>Number: 183160
>Category: ports
>Synopsis: [PATCH] audio/mp3info: Fix WITH=GTK2, Stagify, Use new options.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Oct 21 16:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Mathieu Arnold
>Release: FreeBSD 9.2-RELEASE i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Fri Sep 27 03:52:52 UTC
>Description:
- Fix WITH=GTK2
- Stagify
- Use new options framework.
Port maintainer (sylvio at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_8 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- mp3info-0.8.5.patch begins here ---
diff -ruN /usr/ports/audio/mp3info/Makefile ./Makefile
--- /usr/ports/audio/mp3info/Makefile 2013-10-04 10:52:32.000000000 +0200
+++ ./Makefile 2013-10-21 18:18:35.000000000 +0200
@@ -19,35 +19,29 @@
PORTDOCS= ChangeLog README mp3info.txt
OPTIONS_DEFINE= GTK2
+OPTIONS_DEFAULT= GTK2
GTK2_DESC= Enable to have the gmp3info
-PLIST_FILES= bin/mp3info \
- %%WITH_GTK%%bin/gmp3info
+GTK2_USES= pkgconfig
+GTK2_USE= GNOME=gtk20
+GTK2_ALL_TARGET= gmp3info
+GTK2_PLIST_FILES= bin/gmp3info
-MAN1= mp3info.1
-NO_STAGE= yes
+PLIST_FILES= bin/mp3info man/man1/mp3info.1.gz
ALL_TARGET= doc mp3info
.include <bsd.port.options.mk>
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/mp3info ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/mp3info.1 ${STAGEDIR}${PREFIX}/man/man1
.if ${PORT_OPTIONS:MGTK2}
-USE_GNOME+= gtk20
-ALL_TARGET+= gmp3info
-MAKE_ARGS= install-gmp3info
-PLIST_SUB+= WITH_GTK=""
-.else
-PLIST_SUB+= WITH_GTK="@comment "
+ ${INSTALL_PROGRAM} ${WRKSRC}/gmp3info ${STAGEDIR}${PREFIX}/bin
.endif
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/mp3info ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/mp3info.1 ${PREFIX}/man/man1
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for docs in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${docs} ${DOCSDIR}
-.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>
--- mp3info-0.8.5.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list