diff options
-rw-r--r-- | textproc/topic/Makefile | 9 | ||||
-rw-r--r-- | textproc/topic/files/patch-Makefile | 26 | ||||
-rw-r--r-- | textproc/topic/pkg-descr | 2 |
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 |