1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/sysutils/wminet/files/patch-aa
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

46 lines
1.2 KiB
Plaintext

--- Makefile.orig Fri Dec 11 22:15:44 1998
+++ Makefile Thu Aug 16 10:06:13 2001
@@ -1,19 +1,21 @@
-LIBDIR = -L/usr/X11R6/lib
-LIBS = -lXpm -lXext -lX11
-FLAGS = -O2
+LIBDIR = -L${LOCALBASE}/lib
+LIBS = -lXpm -lXext -lX11 -lkvm
+CFLAGS += -I${LOCALBASE}/include
+CFLAGS += -DDEFAULT_WMINETRC="\"${PREFIX}/etc/wminetrc\""
OBJS = wminet.o \
../wmgeneral/wmgeneral.o \
../wmgeneral/misc.o \
../wmgeneral/list.o
+PROG = wminet
.c.o:
- cc -I/usr/X11R6/share/include $(FLAGS) -c -Wall $< -o $*.o
+ ${CC} $(CFLAGS) -c $< -o $@
-wminet: $(OBJS)
- cc $(FLAGS) -o wminet $^ -lXext $(LIBDIR) $(LIBS)
+$(PROG): $(OBJS)
+ ${CC} $(CFLAGS) -o $@ $(OBJS) $(LIBDIR) $(LIBS)
-all:: wminet
+all:: $(PROG)
clean::
for i in $(OBJS) ; do \
@@ -23,11 +25,5 @@
rm -f *~
install:: wminet
- cp -f wminet /usr/local/bin/
- chmod 755 /usr/local/bin/wminet
- chown root:root /usr/local/bin/wminet
- cp wminetrc $(HOME)/.wminetrc
- chmod 600 $(HOME)/.wminetrc
- cp wminetrc /etc/wminetrc
- chmod 644 /etc/wminetrc
- @echo "WMiNET Installation finished..."
+ ${INSTALL} -c -s -g kmem -m 2755 -o root $(PROG) ${PREFIX}/bin
+ ${INSTALL} -c -g wheel -m 644 -o root wminetrc ${PREFIX}/etc/wminetrc