1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Try to unbreak parallel (-jX) builds by sanitizing makefile

- Cleanup Makefile: kill defunct WWW and comment MASTER_SITES
This commit is contained in:
Alexey Dokuchaev 2013-08-02 10:33:26 +00:00
parent 8a3f89fe10
commit d04055801b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324159
3 changed files with 32 additions and 5 deletions

View File

@ -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>

View File

@ -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:

View File

@ -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