Fix mp3info, reported by marcm@.

Add no_x11 FLAVOR.
--
Thanks to pvalchev@ and naddy@.
This commit is contained in:
margarida 2003-12-09 02:33:45 +00:00
parent 0d2f5634f8
commit edf756c3a3
4 changed files with 45 additions and 10 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.15 2003/04/27 22:48:09 margarida Exp $
# $OpenBSD: Makefile,v 1.16 2003/12/09 02:33:45 margarida Exp $
COMMENT= "MP3 information tool"
@ -21,11 +21,17 @@ EXTRACT_SUFX= .tgz
MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mp3info ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mp3info.1 ${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mp3info
cd ${WRKSRC} && ${INSTALL_DATA} README \
${PREFIX}/share/doc/mp3info
FLAVORS= no_x11
FLAVOR?=
.if ${FLAVOR:L:Mno_x11}
ALL_TARGET= mp3info doc
INSTALL_TARGET= install-no_x11
.else
USE_X11= Yes
LIB_DEPENDS= gtk.1.2,gdk.1.2::x11/gtk+
ALL_TARGET=
INSTALL_TARGET=
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-Makefile,v 1.1 2003/12/09 02:33:45 margarida Exp $
--- Makefile.orig 2001-07-16 10:17:27.000000000 +0100
+++ Makefile 2003-12-08 02:23:50.000000000 +0000
@@ -28,9 +28,9 @@
# bindir = where binaries get installed (default = /usr/local/bin)
# mandir = where the manual page gets installed (default = /usr/local/man/man1)
-prefix=/usr/local
-bindir=${prefix}/bin
-mandir = $(prefix)/man/man1
+prefix = ${PREFIX}
+bindir = ${PREFIX}/bin
+mandir = ${PREFIX}/man/man1
# No changes necessary below this line
@@ -75,6 +75,11 @@ install: mp3info gmp3info
$(INSTALL) gmp3info $(bindir)/gmp3info
$(INSTALL) mp3info.1 $(mandir)/mp3info.1
+install-no_x11: mp3info
+ $(STRIP) mp3info
+ $(INSTALL) mp3info $(bindir)/mp3info
+ $(INSTALL) mp3info.1 $(mandir)/mp3info.1
+
uninstall:
rm -f $(bindir)/mp3info
rm -f $(bindir)/gmp3info

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.no-no_x11,v 1.1 2003/12/09 02:33:45 margarida Exp $
bin/gmp3info

View File

@ -1,5 +1,4 @@
@comment $OpenBSD: PLIST,v 1.4 2003/04/27 22:48:09 margarida Exp $
@comment $OpenBSD: PLIST,v 1.5 2003/12/09 02:33:45 margarida Exp $
!%%no_x11%%
bin/mp3info
man/man1/mp3info.1
share/doc/mp3info/README
@dirrm share/doc/mp3info