aboutsummaryrefslogtreecommitdiff
path: root/www/bk_edit
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2005-07-18 15:17:07 +0000
committerPav Lucistnik <pav@FreeBSD.org>2005-07-18 15:17:07 +0000
commit5f88a13a5cb92d5474ed20335ffb92330458302f (patch)
tree17d5ee0c09c5477cfe5bc9a41e4c503797ccb320 /www/bk_edit
parent50ba4c3ce37f4d338b060475391866124322ead8 (diff)
downloadports-5f88a13a5cb92d5474ed20335ffb92330458302f.tar.gz
ports-5f88a13a5cb92d5474ed20335ffb92330458302f.zip
Notes
Diffstat (limited to 'www/bk_edit')
-rw-r--r--www/bk_edit/Makefile18
-rw-r--r--www/bk_edit/files/patch-src:Makefile.in27
-rw-r--r--www/bk_edit/pkg-descr2
3 files changed, 17 insertions, 30 deletions
diff --git a/www/bk_edit/Makefile b/www/bk_edit/Makefile
index 7dd323c5a8a8..8423f2717ee8 100644
--- a/www/bk_edit/Makefile
+++ b/www/bk_edit/Makefile
@@ -15,10 +15,24 @@ MASTER_SITES= http://www.allesdurcheinander.de/nettools/bk_edit/
MAINTAINER= ports@FreeBSD.org
COMMENT= Bookmark Editor
+USE_GNOME= gtk12 libxml2
USE_BISON= yes
USE_GETOPT_LONG= yes
-USE_GNOME= gtk12 libxml2
+USE_REINPLACE= yes
HAS_CONFIGURE= yes
-MAKE_ENV= LDFLAGS="${LDFLAGS}"
+MAKE_ENV= LD="${CC}" LDFLAGS="${LDFLAGS}"
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "*Makefile*" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|^CC .*=|CC ?=|g ; \
+ s|^LD .*=|LD ?=|g ; \
+ s|^CFLAGS .*=|CFLAGS +=|g ; \
+ s|^LDFLAGS .*=|LDFLAGS +=|g ; \
+ s| make| $$(MAKE)|g'
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/bkedit ${PREFIX}/bin
+ @${MKDIR} ${PREFIX}/lib/bkedit
+ ${INSTALL_DATA} ${WRKSRC}/src/plugins/*.so ${PREFIX}/lib/bkedit
.include <bsd.port.mk>
diff --git a/www/bk_edit/files/patch-src:Makefile.in b/www/bk_edit/files/patch-src:Makefile.in
deleted file mode 100644
index 55a8c343c0bb..000000000000
--- a/www/bk_edit/files/patch-src:Makefile.in
+++ /dev/null
@@ -1,27 +0,0 @@
---- src/Makefile.in.orig Sat Nov 29 21:14:14 2003
-+++ src/Makefile.in Fri Dec 26 14:08:00 2003
-@@ -1,10 +1,10 @@
- PROG = bkedit#
-
--CC = gcc
-+#CC = gcc
- LD = gcc
-
--CFLAGS = -Wall `@GTK_CONFIG@ --cflags` `@XML2_CONFIG@ --cflags`#-ggdb -pg -a
--LDFLAGS = @LIB@ `@GTK_CONFIG@ --libs` `@XML2_CONFIG@ --libs` -Wl,-export-dynamic# -rdynamic 'reverse dependencies' # -pg
-+CFLAGS += -Wall `@GTK_CONFIG@ --cflags` `@XML2_CONFIG@ --cflags`#-ggdb -pg -a
-+LDFLAGS += @LIB@ `@GTK_CONFIG@ --libs` `@XML2_CONFIG@ --libs` -Wl,-export-dynamic# -rdynamic 'reverse dependencies' # -pg
-
- OBJS = bk_edit.o bk_edit_menu.o bk_edit_tree.o bk_edit_edit.o bk_edit_file.o \
- bk_edit_ccp.o bk_edit_data.o bk_edit_undo.o bk_edit_dnd.o bk_edit_misc.o \
-@@ -31,8 +31,8 @@
- install:
- $(INSTALL) -d -m 755 @PREFIX@/bin/
- $(INSTALL) -m 755 $(PROG) @PREFIX@/bin/
-- $(INSTALL) -d -m 755 @PREFIX@/share/bkedit/
-- $(INSTALL) -m 755 ./plugins/*.so @PREFIX@/share/bkedit/
-+ $(INSTALL) -d -m 755 @PREFIX@/lib/bkedit/
-+ $(INSTALL) -m 755 ./plugins/*.so @PREFIX@/lib/bkedit/
-
- uninstall:
- $(RM) @PREFIX@/bin/$(PROG)
diff --git a/www/bk_edit/pkg-descr b/www/bk_edit/pkg-descr
index 01d14feaa0ae..59ecfbb67d7d 100644
--- a/www/bk_edit/pkg-descr
+++ b/www/bk_edit/pkg-descr
@@ -14,4 +14,4 @@ there are plugins for the following browsers and tools:
* Phoenix 0.5+ (Drag & Drop only)
* Konqueror 3+ (Drag & Drop only)
-WWW: http://www2.fht-esslingen.de/~clfuit00/sasnt/bk_edit/
+WWW: http://www.allesdurcheinander.de/nettools/bk_edit/