aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2013-08-02 10:33:26 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2013-08-02 10:33:26 +0000
commitd04055801bbc21144e47a9c631e5b80ce15b6cf0 (patch)
treec97020e32d1e02769ee24787d92359cd3af813d3
parent8a3f89fe108710b120d844b88b6f8f96d41346d2 (diff)
downloadports-d04055801bbc21144e47a9c631e5b80ce15b6cf0.tar.gz
ports-d04055801bbc21144e47a9c631e5b80ce15b6cf0.zip
Notes
-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