aboutsummaryrefslogtreecommitdiff
path: root/misc/gman
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-10 04:25:02 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-06-10 04:25:02 +0000
commit305e795caeb5548f0d45fd922623c4d1a33cffdb (patch)
tree8e45e7720817a32b695584bb9a506ae16d6320d4 /misc/gman
parentf735aeda02725c043d1c362efde6ee8c64432207 (diff)
downloadports-305e795caeb5548f0d45fd922623c4d1a33cffdb.tar.gz
ports-305e795caeb5548f0d45fd922623c4d1a33cffdb.zip
Notes
Diffstat (limited to 'misc/gman')
-rw-r--r--misc/gman/Makefile11
-rw-r--r--misc/gman/distinfo2
-rw-r--r--misc/gman/files/patch-Makefile30
-rw-r--r--misc/gman/pkg-plist2
4 files changed, 20 insertions, 25 deletions
diff --git a/misc/gman/Makefile b/misc/gman/Makefile
index bf96a882bbb5..a43712413b29 100644
--- a/misc/gman/Makefile
+++ b/misc/gman/Makefile
@@ -7,11 +7,11 @@
#
PORTNAME= gman
-PORTVERSION= 0.9.2
+PORTVERSION= 0.9.3
CATEGORIES= misc
MASTER_SITES= http://homex.coolconnect.com/user/xkwang/gman/
-MAINTAINER= ijliao@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg
RUN_DEPENDS= ghostview:${PORTSDIR}/print/ghostview
@@ -20,8 +20,9 @@ USE_GTK= yes
MAN1= gman.1x
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gman ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/gman.1x ${MANPREFIX}/man/man1
+post-patch:
+ @${PERL} -pi -e "s,^CXX =,#CXX =,g ; s,^CXXFLAGS =,CXXFLAGS+=,g ; \
+ s,gtk-config,${GTK_CONFIG},g ; s,= /usr,= ${PREFIX},g ; \
+ s,/var/www,${LOCALBASE}/www,g" ${WRKSRC}/Makefile
.include <bsd.port.mk>
diff --git a/misc/gman/distinfo b/misc/gman/distinfo
index 22b89951c8b9..9d6c1d033e39 100644
--- a/misc/gman/distinfo
+++ b/misc/gman/distinfo
@@ -1 +1 @@
-MD5 (gman-0.9.2.tar.gz) = 7e573cda5d58e3fe4d24d04a295ff0ac
+MD5 (gman-0.9.3.tar.gz) = 819582eb2527e36271f82f6562001b43
diff --git a/misc/gman/files/patch-Makefile b/misc/gman/files/patch-Makefile
index 7eccdc105704..f78fbab84826 100644
--- a/misc/gman/files/patch-Makefile
+++ b/misc/gman/files/patch-Makefile
@@ -1,25 +1,17 @@
---- Makefile.orig Sat Mar 31 19:05:24 2001
-+++ Makefile Sat Apr 14 04:19:15 2001
-@@ -1,18 +1,18 @@
- # Gman Makefile
- # You can adjust the following variables.
--CXX = g++
--CXXFLAGS = -DVERSION=\"0.9.2\" `gtk-config --cflags` -O2 #-Wall
-+CXX ?= g++
-+CXXFLAGS += -DVERSION=\"0.9.2\" `${GTK_CONFIG} --cflags gthread` #-Wall
- CC = $(CXX) $(CXXFLAGS)
-
- GNOMELIB = #`gnome-config --libs gnomeui`
--prefix = /usr
-+prefix = ${PREFIX}
- cgi_bin_prefix = /home/httpd/cgi-bin
-
- # There shouldn't be any need to edit anything below this point.
+--- Makefile.orig Tue May 21 14:39:34 2002
++++ Makefile Mon Jun 10 12:27:13 2002
+@@ -13,7 +13,7 @@
all: gman
gman: menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o
-- $(CC) -lgtk -lgdk -lpthread $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
-+ $(CC) `${GTK_CONFIG} --libs gthread` $(GNOMELIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
+- $(CXX) -lgtk -lgdk -lpthread $(GTKLIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
++ $(CXX) `${GTK_CONFIG} --libs gthread` $(GTKLIB) menu.o mandata.o util.o gman.o list.o context.o task.o taskfunc.o window2.o -o gman
gman.o: gman.c menu.h
$(CC) -c gman.c
+@@ -52,4 +52,4 @@
+ install -s -m 755 gman $(prefix)/bin
+ install -s -m 755 gman.pl $(prefix)/bin/gman.cgi
+ install -m 644 gman.1x $(prefix)/man/man1
+- install -s -m 755 gman.pl $(ci_bin_prefix)/gman
++ install -s -m 755 gman.pl $(cgi_bin_prefix)/gman
diff --git a/misc/gman/pkg-plist b/misc/gman/pkg-plist
index 769b105dd8fc..318b9317cd41 100644
--- a/misc/gman/pkg-plist
+++ b/misc/gman/pkg-plist
@@ -1 +1,3 @@
bin/gman
+bin/gman.cgi
+www/cgi-bin/gman