aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordanfe <danfe@FreeBSD.org>2013-08-02 18:33:26 +0800
committerdanfe <danfe@FreeBSD.org>2013-08-02 18:33:26 +0800
commit612d23a41583a2aac91aee89b1c1afd5ce98198b (patch)
treec97020e32d1e02769ee24787d92359cd3af813d3
parent0ec2d5c2cbeb6ddc76bea60c7f809d0bb9b76d4b (diff)
downloadfreebsd-ports-gnome-612d23a41583a2aac91aee89b1c1afd5ce98198b.tar.gz
freebsd-ports-gnome-612d23a41583a2aac91aee89b1c1afd5ce98198b.tar.zst
freebsd-ports-gnome-612d23a41583a2aac91aee89b1c1afd5ce98198b.zip
- Try to unbreak parallel (-jX) builds by sanitizing makefile
- Cleanup Makefile: kill defunct WWW and comment MASTER_SITES
-rw-r--r--textproc/topic/Makefile9
-rw-r--r--textproc/topic/files/patch-Makefile26
-rw-r--r--textproc/topic/pkg-descr2
3 files changed, 32 insertions, 5 deletions
diff --git a/textproc/topic/Makefile b/textproc/topic/Makefile
index 92b5df147337..8df87c116a70 100644
--- a/textproc/topic/Makefile
+++ b/textproc/topic/Makefile
@@ -3,7 +3,7 @@
PORTNAME= topic
PORTVERSION= 1.02
CATEGORIES= textproc
-MASTER_SITES= http://topcat.hypermart.net/code/
+MASTER_SITES= # http://topcat.hypermart.net/code/
MAINTAINER= mike@topcat.hypermart.net
COMMENT= Topic markup parser
@@ -11,8 +11,11 @@ COMMENT= Topic markup parser
PLIST_FILES= bin/${PORTNAME}
MAN1= ${PORTNAME}.1
+pre-build:
+ @${RM} ${WRKSRC}/topic.txt
+
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
- ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1/${PORTNAME}.1
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/textproc/topic/files/patch-Makefile b/textproc/topic/files/patch-Makefile
new file mode 100644
index 000000000000..131d8f530d18
--- /dev/null
+++ b/textproc/topic/files/patch-Makefile
@@ -0,0 +1,26 @@
+--- Makefile.orig 2013-01-01 14:00:00.000000000 +0800
++++ Makefile 2013-08-02 18:27:07.000000000 +0800
+@@ -5,15 +5,17 @@
+ CFLAGS+= -Wall -Werror
+ BUILD= v1.02
+
+-all: prep compile
++all: topic
+
+-prep: ./bin2c.c ./syntax.txt ./markup.txt ./license.txt
++bin2c: bin2c.c
+ $(CC) $(CFLAGS) ./bin2c.c -o ./bin2c
+- ./bin2c -z ./syntax.txt ./syntax.c
+- ./bin2c -z ./markup.txt ./markup.c
+- ./bin2c -z ./license.txt ./license.c
+
+-compile: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
++.SUFFIXES: .txt
++
++.txt.c: bin2c
++ ./bin2c -z $(.IMPSRC) $(.TARGET)
++
++topic: ./topic.c ./syntax.c ./markup.c ./license.c ./topic.1
+ $(CC) $(CFLAGS) -DBUILD="\"$(BUILD)\"" ./topic.c -o ./topic
+
+ clean:
diff --git a/textproc/topic/pkg-descr b/textproc/topic/pkg-descr
index e709f22eb03d..b5c1afd07ce1 100644
--- a/textproc/topic/pkg-descr
+++ b/textproc/topic/pkg-descr
@@ -1,4 +1,2 @@
TOPIC markup provides a minimal context for plain text databases that
can be read/modified by most text editors, and easily parsed as well.
-
-WWW: http://topcat.hypermart.net/topic.html