- Unbreak parallel (-jX) builds and remove disgraceful MAKE_JOBS_UNSAFE

- Standardize the header and COMMENT, renew LIB_DEPENDS, convert USE_GMAKE
- Generally cleanup Makefile, sort the knobs, kill EOL space in pkg-descr
This commit is contained in:
Alexey Dokuchaev 2013-08-09 09:03:23 +00:00
parent d02adb74b5
commit c83c682335
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=324422
3 changed files with 22 additions and 18 deletions

View file

@ -1,4 +1,4 @@
# Created by: ijliao # Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$ # $FreeBSD$
PORTNAME= domc PORTNAME= domc
@ -8,27 +8,26 @@ CATEGORIES= textproc
MASTER_SITES= http://www.ioplex.com/~miallen/domc/dl/ MASTER_SITES= http://www.ioplex.com/~miallen/domc/dl/
MAINTAINER= ports@FreeBSD.org MAINTAINER= ports@FreeBSD.org
COMMENT= A light weight implementation of the DOM in ANSI C COMMENT= Lightweight implementation of the DOM in ANSI C
LIB_DEPENDS= expat.6:${PORTSDIR}/textproc/expat2 \ LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
mba.0:${PORTSDIR}/devel/libmba libmba.so:${PORTSDIR}/devel/libmba
USES= gmake
MAKE_ENV= SHLIB_MAJOR="${SHLIB_MAJOR}" INSTDIR=${PREFIX}
USE_LDCONFIG= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
SHLIB_MAJOR= 0
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
MAN3= DOM_CharacterData.3m DOM_Document.3m DOM_Element.3m \ MAN3= DOM_CharacterData.3m DOM_Document.3m DOM_Element.3m \
DOM_Implementation.3m DOM_NamedNodeMap.3m DOM_Node.3m \ DOM_Implementation.3m DOM_NamedNodeMap.3m DOM_Node.3m \
DOM_NodeList.3m DOM_Text.3m DOM_NodeList.3m DOM_Text.3m
MANCOMPRESSED= yes MANCOMPRESSED= yes
SHLIB_MAJOR= 0
USE_GMAKE= yes
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= SHLIB_MAJOR="${SHLIB_MAJOR}" INSTDIR=${PREFIX}
USE_LDCONFIG= yes
MAKE_JOBS_UNSAFE= yes
PLIST_SUB= SHLIB_MAJOR="${SHLIB_MAJOR}"
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" .if ${ARCH} == "sparc64"

View file

@ -22,7 +22,7 @@
#CFLAGS = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS) -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wtraditional -Wconversion -Waggregate-return -Wno-parentheses #CFLAGS = -Wall -W -DMSGNO -I$(includedir) -L$(libdir) $(RPM_OPT_FLAGS) -ansi -pedantic -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Winline -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -Wtraditional -Wconversion -Waggregate-return -Wno-parentheses
OBJS = src/expatls.o src/events.o src/node.o src/nodelist.o src/namednodemap.o src/dom.o src/timestamp.o src/wcwidth.o src/mbs.o OBJS = src/expatls.o src/events.o src/node.o src/nodelist.o src/namednodemap.o src/dom.o src/timestamp.o src/wcwidth.o src/mbs.o
MAN = DOM_CharacterData.3m.gz DOM_Document.3m.gz DOM_Element.3m.gz DOM_Implementation.3m.gz DOM_NamedNodeMap.3m.gz DOM_Node.3m.gz DOM_NodeList.3m.gz DOM_Text.3m.gz MAN = DOM_CharacterData.3m.gz DOM_Document.3m.gz DOM_Element.3m.gz DOM_Implementation.3m.gz DOM_NamedNodeMap.3m.gz DOM_Node.3m.gz DOM_NodeList.3m.gz DOM_Text.3m.gz
@@ -19,7 +17,7 @@ @@ -19,12 +17,11 @@
all: $(ARNAME)($(OBJS)) $(SONAME) src/defines.h all: $(ARNAME)($(OBJS)) $(SONAME) src/defines.h
$(SONAME): $(OBJS) $(SONAME): $(OBJS)
@ -31,7 +31,12 @@
.c.a: .c.a:
$(CC) $(CFLAGS) -c -o $*.o $< $(CC) $(CFLAGS) -c -o $*.o $<
@@ -33,12 +31,10 @@ ar rv $@ $*.o
- rm $*.o
.c.o:
$(CC) $(CFLAGS) -fpic -c -o $*.o $<
@@ -33,12 +30,10 @@
install -d $(libdir) install -d $(libdir)
install -d $(includedir) install -d $(includedir)
install -d $(mandir)/man3 install -d $(mandir)/man3

View file

@ -1,5 +1,5 @@
DOMC is a light weight implementation of the DOM in ANSI C as specified in DOMC is a light weight implementation of the DOM in ANSI C as specified in
the W3C Document Object Model Level 1, Level 2, and Level 2 Events the W3C Document Object Model Level 1, Level 2, and Level 2 Events
recommendations. recommendations.
WWW: http://www.ioplex.com/~miallen/domc/ WWW: http://www.ioplex.com/~miallen/domc/