diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/snowflake/Makefile | 3 | ||||
-rw-r--r-- | misc/snowflake/files/patch-aa | 28 |
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 |