aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-07-16 01:16:05 +0800
committerwill <will@FreeBSD.org>2000-07-16 01:16:05 +0800
commit5b7ed4b161288fffe8aca894f47417a878825692 (patch)
treec062dc4060fa9408a4ed79171a1cc8834755b0a2 /audio
parent93ac4459ce4b911af0ae68d1027d3bb43c34be06 (diff)
downloadfreebsd-ports-gnome-5b7ed4b161288fffe8aca894f47417a878825692.tar.gz
freebsd-ports-gnome-5b7ed4b161288fffe8aca894f47417a878825692.tar.zst
freebsd-ports-gnome-5b7ed4b161288fffe8aca894f47417a878825692.zip
Use GTK_CONFIG instead of hardcoded gtk12-config; support CFLAGS properly;
support NOPORTDOCS. PR: 19923 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'audio')
-rw-r--r--audio/grip/Makefile18
-rw-r--r--audio/grip/files/patch-aa22
-rw-r--r--audio/grip/pkg-plist6
3 files changed, 29 insertions, 17 deletions
diff --git a/audio/grip/Makefile b/audio/grip/Makefile
index 995d585f2e54..dc40d8751134 100644
--- a/audio/grip/Makefile
+++ b/audio/grip/Makefile
@@ -11,14 +11,28 @@ CATEGORIES= audio
MASTER_SITES= http://www.nostatic.org/grip/
EXTRACT_SUFX= .tgz
-MAINTAINER= ports@freebsd.org
+MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
USE_GMAKE= yes
-ALL_TARGET= gripnopar
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
+ALL_TARGET= gripnopar gcd
+
+MAN1= grip.1
+MLINKS= grip.1 gcd.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/grip ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/gcd ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/grip.1 ${PREFIX}/man/man1
+.if !defined(NOPORTDOCS)
+.for file in CHANGES CREDITS README TODO
+ @${MKDIR} ${PREFIX}/share/doc/grip
+ ${INSTALL_MAN} ${WRKSRC}/${file} ${PREFIX}/share/doc/grip
+.endfor
+.endif
.include <bsd.port.mk>
diff --git a/audio/grip/files/patch-aa b/audio/grip/files/patch-aa
index 390bbd4a889e..73832f4e2104 100644
--- a/audio/grip/files/patch-aa
+++ b/audio/grip/files/patch-aa
@@ -1,5 +1,5 @@
---- Makefile.orig Tue Apr 18 08:37:44 2000
-+++ Makefile Fri May 5 23:55:16 2000
+--- Makefile.orig Wed Apr 19 00:37:44 2000
++++ Makefile Tue Jul 11 03:58:32 2000
@@ -4,24 +4,24 @@
OS=$(shell uname -s)
@@ -16,26 +16,18 @@
# Location to store auxilliary files
-AUXDIR= $(PREFIX)/lib/grip
-+AUXDIR= $(PREFIX)/lib
++AUXDIR= $(PREFIX)/etc
# Compiler flags
-CFLAGS= -Wall `gtk-config --cflags` -DAUXDIR=\"$(AUXDIR)\" \
-+CFLAGS= -Wall `gtk12-config --cflags` -DAUXDIR=\"$(AUXDIR)\" \
- -DINSTALLDIR=\"$(INSTALLDIR)\" -D_REENTRANT
+- -DINSTALLDIR=\"$(INSTALLDIR)\" -D_REENTRANT
++CFLAGS+= `$(GTK_CONFIG) --cflags` -DAUXDIR=\"$(AUXDIR)\" \
++ -DINSTALLDIR=\"$(INSTALLDIR)\" -D_REENTRANT -D_THREAD_SAFE
# Link libraries
-LIBS= `gtk-config --libs`
-+LIBS= `gtk12-config --libs`
++LIBS= `$(GTK_CONFIG) --libs`
ifeq ($(OS), Linux)
LIBS+= -lpthread
endif
-@@ -34,7 +34,7 @@
- # This is needed for "make install"
- OWNER = root
- GROUP = root
--INSTALL = /usr/bin/install -o $(OWNER) -g $(GROUP)
-+INSTALL ?= /usr/bin/install -o $(OWNER) -g $(GROUP)
-
-
- # ----------- You shouldn't need to make changes below here. -------------
diff --git a/audio/grip/pkg-plist b/audio/grip/pkg-plist
index 5d001ccd5ec6..0f769dfb76e5 100644
--- a/audio/grip/pkg-plist
+++ b/audio/grip/pkg-plist
@@ -1 +1,7 @@
+bin/gcd
bin/grip
+share/doc/grip/CHANGES
+share/doc/grip/CREDITS
+share/doc/grip/README
+share/doc/grip/TODO
+@dirrm share/doc/grip