mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- 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:
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
|
@ -1,4 +1,4 @@
|
|||
# Created by: ijliao
|
||||
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= domc
|
||||
|
@ -8,27 +8,26 @@ CATEGORIES= textproc
|
|||
MASTER_SITES= http://www.ioplex.com/~miallen/domc/dl/
|
||||
|
||||
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 \
|
||||
mba.0:${PORTSDIR}/devel/libmba
|
||||
LIB_DEPENDS= libexpat.so:${PORTSDIR}/textproc/expat2 \
|
||||
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 \
|
||||
DOM_Implementation.3m DOM_NamedNodeMap.3m DOM_Node.3m \
|
||||
DOM_NodeList.3m DOM_Text.3m
|
||||
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>
|
||||
|
||||
.if ${ARCH} == "sparc64"
|
||||
|
|
|
@ -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
|
||||
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
|
||||
@@ -19,7 +17,7 @@
|
||||
@@ -19,12 +17,11 @@
|
||||
all: $(ARNAME)($(OBJS)) $(SONAME) src/defines.h
|
||||
|
||||
$(SONAME): $(OBJS)
|
||||
|
@ -31,7 +31,12 @@
|
|||
|
||||
.c.a:
|
||||
$(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 $(includedir)
|
||||
install -d $(mandir)/man3
|
||||
|
|
Loading…
Add table
Reference in a new issue