aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/wmmount/Makefile6
-rw-r--r--sysutils/wmmount/files/patch-dockapp.c11
-rw-r--r--sysutils/wmmount/files/patch-wmmount.c11
-rw-r--r--x11-clocks/wmfishtime/Makefile7
-rw-r--r--x11-clocks/wmfishtime/files/patch-Makefile15
-rw-r--r--x11-clocks/wmfishtime/files/patch-fishmon.c42
6 files changed, 81 insertions, 11 deletions
diff --git a/sysutils/wmmount/Makefile b/sysutils/wmmount/Makefile
index ec7a506dfea6..e450938eda95 100644
--- a/sysutils/wmmount/Makefile
+++ b/sysutils/wmmount/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wmmount
PORTVERSION= 1.0b2
+PORTREVISION= 1
CATEGORIES= sysutils windowmaker afterstep
MASTER_SITES= http://www.geocities.com/SiliconValley/Vista/2471/files/
DISTNAME= ${PORTNAME}-1.0-beta2
@@ -15,15 +16,12 @@ EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
COMMENT= The freespace for Window Maker
+USE_GETOPT_LONG=yes
USE_IMAKE= yes
USE_XPM= yes
USE_REINPLACE= yes
MAKE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-CPPFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -lgnugetopt
-
post-patch:
.for file in system.wmmount.eg system.wmmount.sh
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config/${file}
diff --git a/sysutils/wmmount/files/patch-dockapp.c b/sysutils/wmmount/files/patch-dockapp.c
new file mode 100644
index 000000000000..de01dbd9c0ce
--- /dev/null
+++ b/sysutils/wmmount/files/patch-dockapp.c
@@ -0,0 +1,11 @@
+--- dockapp.c.orig Fri Jun 18 04:41:41 1999
++++ dockapp.c Mon Jul 7 04:34:44 2003
+@@ -89,7 +89,7 @@
+ dockapp_argv=argv;
+ while(true) {
+ option_index=0;
+- option_c=getopt_long_only(argc, argv, "-hwsaf:b:", long_options, &option_index);
++ option_c=getopt_long(argc, argv, "-hwsaf:b:", long_options, &option_index);
+ if(option_c==-1)
+ break;
+ if(option_c==0) {
diff --git a/sysutils/wmmount/files/patch-wmmount.c b/sysutils/wmmount/files/patch-wmmount.c
new file mode 100644
index 000000000000..384f2520dd57
--- /dev/null
+++ b/sysutils/wmmount/files/patch-wmmount.c
@@ -0,0 +1,11 @@
+--- wmmount.c.orig Fri Jun 18 04:41:41 1999
++++ wmmount.c Mon Jul 7 04:35:33 2003
+@@ -231,7 +231,7 @@
+ };
+ while(true) {
+ option_index=0;
+- option_c=getopt_long_only(argc, (char * const *)argv, "-h", long_options, &option_index);
++ option_c=getopt_long(argc, (char * const *)argv, "-h", long_options, &option_index);
+ if(option_c==-1)
+ break;
+ if(option_c==1) {
diff --git a/x11-clocks/wmfishtime/Makefile b/x11-clocks/wmfishtime/Makefile
index 2ddced265c7b..c1359189fdb6 100644
--- a/x11-clocks/wmfishtime/Makefile
+++ b/x11-clocks/wmfishtime/Makefile
@@ -7,6 +7,7 @@
PORTNAME= wmfishtime
PORTVERSION= 1.23
+PORTREVISION= 1
CATEGORIES= x11-clocks windowmaker
MASTER_SITES= http://www.ne.jp/asahi/linux/timecop/software/ \
http://atreides.freenix.no/~anders/
@@ -14,14 +15,14 @@ MASTER_SITES= http://www.ne.jp/asahi/linux/timecop/software/ \
MAINTAINER= anders@FreeBSD.org
COMMENT= A time/date applet for WindowMaker with fishes swimming around
-LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
-
+USE_GETOPT_LONG=yes
USE_GNOME= gtk12
USE_X_PREFIX= yes
GTK_LIBS?= `${GTK_CONFIG} --libs`
GTK_CFLAGS?= `${GTK_CONFIG} --cflags`
-MAKE_ARGS+= CFLAGS="${CFLAGS} -Wall -I${LOCALBASE}/include ${GTK_CFLAGS}" \
+MAKE_ARGS+= CFLAGS="${CPPFLAGS} ${CFLAGS} -Wall ${GTK_CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
GTK_LIBS="${GTK_LIBS}"
do-install:
diff --git a/x11-clocks/wmfishtime/files/patch-Makefile b/x11-clocks/wmfishtime/files/patch-Makefile
index 5443503f902f..ff24164ce6f4 100644
--- a/x11-clocks/wmfishtime/files/patch-Makefile
+++ b/x11-clocks/wmfishtime/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig Sat May 26 22:49:41 2001
-+++ Makefile Sun May 27 00:14:26 2001
-@@ -6,17 +6,15 @@
+--- Makefile.orig Sun May 27 05:49:41 2001
++++ Makefile Sun Jul 6 20:29:07 2003
+@@ -6,23 +6,21 @@
# no user serviceable parts below this line
# optimization cflags
@@ -15,7 +15,14 @@
SHELL = sh
OBJS = fishmon.o
-LIBS = `gtk-config --libs | sed "s/-lgtk//g"`
-+LIBS = `echo $(GTK_LIBS) | sed "s/-lgtk12//g"` -lgnugetopt
++LIBS = `echo $(GTK_LIBS) | sed "s/-lgtk12//g"`
INSTALL = -m 755
all: wmfishtime
+
+ wmfishtime: $(OBJS)
+- $(CC) $(CFLAGS) -o wmfishtime $(OBJS) $(LIBS)
++ $(CC) $(CFLAGS) -o wmfishtime $(OBJS) $(LIBS) $(LDFLAGS)
+
+ clean:
+ rm -rf wmfishtime *.o *.bb* *.gcov gmon.* *.da *~ .xvpics
diff --git a/x11-clocks/wmfishtime/files/patch-fishmon.c b/x11-clocks/wmfishtime/files/patch-fishmon.c
new file mode 100644
index 000000000000..f19ae9839eb0
--- /dev/null
+++ b/x11-clocks/wmfishtime/files/patch-fishmon.c
@@ -0,0 +1,42 @@
+--- fishmon.c.orig Sun May 27 05:53:09 2001
++++ fishmon.c Mon Jul 7 04:01:52 2003
+@@ -1018,26 +1018,28 @@
+ {
+ static int ch = 0;
+ static struct option long_opts[] = {
+- { "h", no_argument, NULL, 1 },
+- { "help", no_argument, NULL, 1 },
+- { "v", no_argument, NULL, 2 },
+- { "version", no_argument, NULL, 2 },
+- { "c", no_argument, &enable_check_mail, 1 },
+- { "check-mail", no_argument, &enable_check_mail, 1 },
+- { "b", no_argument, &broken_wm, 1 },
+- { "broken", no_argument, &broken_wm, 1 },
++ { "help", no_argument, NULL, 'h' },
++ { "version", no_argument, NULL, 'v' },
++ { "check-mail", no_argument, &enable_check_mail, 'c' },
++ { "broken", no_argument, &broken_wm, 'b' },
+ { 0, 0, 0, 0 }
+ };
+
+- while ((ch = getopt_long_only(argc, argv, "", long_opts, NULL)) != -1) {
++ while ((ch = getopt_long(argc, argv, "hvcb", long_opts, NULL)) != -1) {
+ switch (ch) {
+- case 1:
++ case 'h':
+ do_help();
+ exit(0);
+ break;
+- case 2:
++ case 'v':
+ do_version();
+ exit(0);
++ break;
++ case 'c':
++ enable_check_mail = 1;
++ break;
++ case 'b':
++ broken_wm = 1;
+ break;
+ }
+ }