1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00

Make the character-width an option -- 16 or 8 bit -- defaulting to 8.

Remove the second listing of http.c from the library's makefile, which
kept it from building on i386, but not -- for some reason -- on am64.
This commit is contained in:
Mikhail Teterin 2021-02-27 23:24:58 +00:00
parent 0f89f2e4c6
commit 6ac92ebea9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=566738
3 changed files with 16 additions and 4 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= rxp
PORTVERSION= 1.4.4
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ftp://ftp.cogsci.ed.ac.uk/pub/richard/
@ -19,6 +19,14 @@ PATCH_WRKSRC= ${WRKSRC}/${PORTNAME}-${PORTVERSION}
WRKSRC= ${WRKDIR}
MAKE_ARGS+= VPATH=${PATCH_WRKSRC}
OPTIONS_SINGLE= CHAR_SIZE
OPTIONS_SINGLE_CHAR_SIZE=8 16
OPTIONS_DEFAULT=8
8_DESC= 8-bit characters (required by speech_tools, festival)
16_DESC= 16-bit characters
MAKE_ARGS+= CHAR_SIZE=${PORT_OPTIONS:C/[^0-9]//g}
do-configure:
.for s in lib rxp
${MKDIR} ${WRKDIR}/$s

View File

@ -3,14 +3,14 @@ SHLIB_MAJOR= 1
SHLIB_MINOR= 4
MK_PROFILE= no
CFLAGS+= -DCHAR_SIZE=16 -DHAVE_LIBZ
CFLAGS+= -DCHAR_SIZE=${CHAR_SIZE} -DHAVE_LIBZ
CFLAGS+= -Werror
WARNS= 6
LDADD= -lz
SRCS= catalog.c catutil.c resolve.c entityopener.c xmlparser.c \
url.c charset.c ctype16.c dtd.c input.c stdio16.c string16.c \
system.c hash.c version.c namespaces.c http.c http.c \
system.c hash.c version.c namespaces.c http.c \
nf16check.c nf16data.c
INCS= charset.h ctype16.h dtd.h hash.h input.h namespaces.h \
rxputil.h stdio16.h string16.h system.h url.h version.h \
@ -20,3 +20,7 @@ LIBDIR= ${PREFIX}/lib
INCSDIR=${PREFIX}/include/rxp
.include <bsd.lib.mk>
.if ${CHAR_SIZE} == 8
CFLAGS+= -Wno-unused-label
.endif

View File

@ -1,7 +1,7 @@
PROG= rxp
SRCS= rxp.c infoset-print.c
CFLAGS+= -DCHAR_SIZE=16 -DHAVE_LIBZ
CFLAGS+= -DCHAR_SIZE=${CHAR_SIZE} -DHAVE_LIBZ
CFLAGS+= -Werror
WARNS= 6