summaryrefslogtreecommitdiff
path: root/audio/grip
diff options
context:
space:
mode:
authorWill Andrews <will@FreeBSD.org>2000-07-15 17:16:05 +0000
committerWill Andrews <will@FreeBSD.org>2000-07-15 17:16:05 +0000
commit916d2c65adc0f3f67e3146e36ce5f0cff7f566b5 (patch)
tree3806a0881a477bae8d9446be015b619a8f8411c8 /audio/grip
parentUse GTK_CONFIG properly; add WWW. (diff)
Use GTK_CONFIG instead of hardcoded gtk12-config; support CFLAGS properly;
support NOPORTDOCS. PR: 19923 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Notes
Notes: svn path=/head/; revision=30664
Diffstat (limited to 'audio/grip')
-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