I saw this once, when trying to create an updated port, and now it happened
again, as I'm trying to get a newer version of snownews. I am trying to
modify the existing port to work with newer version, I modified also patches
that are in the tree, I hope correctly, but what happens is when I 'make
fake', the files instead of landing
in /usr/ports/www/snownews-test/w-snownews-1.5.7/fake-i386 end up
in
/usr/ports/www/snownews-test/w-snownews-1.5.7/fake-i386/usr/ports/www/snownews-test/w-snownews-1.5.7/fake-i386
- what am I doing wrong?
The differences from the original files attached below: (diff -u orig mod)
--- ../snownews/Makefile Sat Dec 11 14:29:22 2004
+++ Makefile Sun Oct 2 20:18:00 2005
@@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.9 2004/12/11 13:29:22 alek Exp $
COMMENT= "text mode rss newsreader"
-DISTNAME= snownews-1.5.4
+DISTNAME= snownews-1.5.7
CATEGORIES= www
MASTER_SITES= ${HOMEPAGE}download/
@@ -26,7 +26,7 @@
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snownews
- ${INSTALL_DATA} ${WRKSRC}/README{,.colors,.de} \
+ ${INSTALL_DATA} ${WRKSRC}/README{,.de} \
${PREFIX}/share/doc/snownews
.include <bsd.port.mk>
--- ../snownews/patches/patch-Makefile Wed Oct 13 05:58:42 2004
+++ patches/patch-Makefile Sun Oct 2 18:06:01 2005
@@ -1,13 +1,13 @@
-$OpenBSD: patch-Makefile,v 1.7 2004/10/13 03:58:42 jolan Exp $
---- Makefile.orig Wed Sep 29 11:28:31 2004
-+++ Makefile Tue Oct 12 22:52:36 2004
+$OpenBSD: patch-Makefile,v 1.8 2005/10/02 18:03:58 viq Exp $
+--- Makefile.orig Sun Oct 2 18:03:01 2005
++++ Makefile Sun Oct 2 18:04:14 2005
@@ -1,4 +1,4 @@
-CC= gcc
+#CC= gcc
MAKE= make
INSTALL= install
LOCALEPATH= $(PREFIX)/share/locale
-@@ -42,11 +42,11 @@ locales:
+@@ -42,11 +42,11 @@
done
manpages:
@@ -21,12 +21,12 @@
sed s/VERSION/$(VERSION)/ > $(MAN)/$$L/snownews.1; \
done
-@@ -60,7 +60,7 @@ install-bin: snownews
- if [ ! -d "$(PREFIX)/bin" ]; then \
- mkdir -p $(PREFIX)/bin; \
+@@ -59,7 +59,7 @@
+ if [ ! -d "$(DESTDIR)$(PREFIX)/bin" ]; then \
+ mkdir -p $(DESTDIR)$(PREFIX)/bin; \
fi
-- $(INSTALL) -s snownews $(PREFIX)/bin
-+ $(INSTALL) snownews $(PREFIX)/bin
- $(INSTALL) opml2snow $(PREFIX)/bin
-
- install-locales: locales
+- $(INSTALL) -s snownews $(DESTDIR)$(PREFIX)/bin
++ $(INSTALL) snownews $(DESTDIR)$(PREFIX)/bin
+ $(INSTALL) opml2snow $(DESTDIR)$(PREFIX)/bin
+ if [ ! -f "$(DESTDIR)$(PREFIX)/bin/snow2opml" ]; then \
+ ln -sf $(DESTDIR)$(PREFIX)/bin/opml2snow
$(DESTDIR)$(PREFIX)/bin/snow2opml; \
--- ../snownews/patches/patch-platform_settings Wed Oct 13 05:58:42 2004
+++ patches/patch-platform_settings Sun Oct 2 18:01:58 2005
@@ -1,7 +1,7 @@
-$OpenBSD: patch-platform_settings,v 1.1 2004/10/13 03:58:42 jolan Exp $
---- platform_settings.orig Wed Sep 29 11:28:31 2004
-+++ platform_settings Tue Oct 12 22:27:01 2004
+$OpenBSD: patch-platform_settings,v 1.2 2005/10/02 18:03:58 viq Exp $
+--- platform_settings.orig Sun Oct 2 18:00:14 2005
++++ platform_settings Sun Oct 2 18:00:20 2005
@@ -1,3 +1,2 @@
-PREFIX= /usr/local
- CFLAGS= -Wall -g -DLOCALEPATH="\"$(LOCALEPATH)\"" -DOS=\"$(shell uname)\"
`xml2-config --cflags` $(EXTRA_CFLAGS)
- LDFLAGS= -lncurses `xml2-config --libs` $(EXTRA_LDFLAGS)
+ CFLAGS= -Wall -Wno-format-y2k -O2 -DLOCALEPATH="\"$(LOCALEPATH)\""
-DOS=\"$(shell uname)\" `xml2-config --cflags` $(EXTRA_CFLAGS)
-DSTATIC_CONST_ICONV -I/usr/local/include
+ LDFLAGS= -lncurses `xml2-config --libs` $(EXTRA_LDFLAGS) -lintl -liconv
Thanks in advance for help, pointers, and kicks in right direction ;)
--
viq
----------------------------------------------------------------------
Tak niesamowity CZAT... >>> http://link.interia.pl/f18ba