aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-07 19:59:26 +0000
commit89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df (patch)
treedab293772a4c12d5e7f6c0f30c1e8ae09e1cfe4d /misc
parent65b63032bfb3a3f1c8ac4ee660ac83927b43c92a (diff)
downloadports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.tar.gz
ports-89b7d2a4465628b128b8f5f7fde5f2a3e2b2a8df.zip
Notes
Diffstat (limited to 'misc')
-rw-r--r--misc/snowflake/Makefile3
-rw-r--r--misc/snowflake/files/patch-aa28
2 files changed, 21 insertions, 10 deletions
diff --git a/misc/snowflake/Makefile b/misc/snowflake/Makefile
index ba0fa3902d8c..6b7dcc1b8511 100644
--- a/misc/snowflake/Makefile
+++ b/misc/snowflake/Makefile
@@ -15,7 +15,10 @@ MAINTAINER= nakai@FreeBSD.org
LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+
USE_X_PREFIX= yes
+MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}"
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/snowflake ${PREFIX}/bin
diff --git a/misc/snowflake/files/patch-aa b/misc/snowflake/files/patch-aa
index b4efd2399577..013d4d19cb13 100644
--- a/misc/snowflake/files/patch-aa
+++ b/misc/snowflake/files/patch-aa
@@ -1,19 +1,27 @@
---- Makefile.orig Sat Jan 29 20:20:01 2000
-+++ Makefile Sat Jan 29 20:20:18 2000
-@@ -11,10 +11,10 @@
+--- Makefile.orig Mon Dec 21 08:18:55 1998
++++ Makefile Sat Jul 1 18:36:45 2000
+@@ -1,6 +1,6 @@
+ # Makefile
+
+-CC = gcc
++CC ?= gcc
+
+ SRCS = sf.c sf_control.c sf_generate.c sf_view.c getopt.c
+ OBJS = $(SRCS:.c=.o)
+@@ -11,13 +11,13 @@
all: snowflake
.c.o:
- $(CC) `gtk-config --cflags` -c $*.c -o $*.o
-+ $(CC) `gtk12-config --cflags` -c $*.c -o $*.o
++ $(CC) $(CFLAGS) `$(GTK_CONFIG) --cflags` -c $*.c -o $*.o
snowflake: $(OBJS)
- $(CC) `gtk-config --libs` $(OBJS) -o $@
-+ $(CC) `gtk12-config --libs` $(OBJS) -o $@
++ $(CC) $(CFLAGS) `$(GTK_CONFIG) --libs` $(OBJS) -o $@
getopt: getopt.c
- $(CC) -DTEST_LONG_OPTIONS $< -o $@
-@@ -26,4 +26,4 @@
- sf_control.o: $(HDRS)
- sf_generate.o: $(HDRS)
- sf_view.o: $(HDRS) $(INCS)
+- $(CC) -DTEST_LONG_OPTIONS $< -o $@
++ $(CC) $(CFLAGS) -DTEST_LONG_OPTIONS $< -o $@
+
+ clean:
+ rm -f *~ *.o snowflake