freebsd-ports/lang/siod/Makefile
Stefan Eßer b7f05445c0 Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.

This commit implements such a proposal and moves one of the WWW: entries
of each pkg-descr file into the respective port's Makefile. A heuristic
attempts to identify the most relevant URL in case there is more than
one WWW: entry in some pkg-descr file. URLs that are not moved into the
Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr
files in order to preserve them.

There are 1256 ports that had no WWW: entries in pkg-descr files. These
ports will not be touched in this commit.

The portlint port has been adjusted to expect a WWW entry in each port
Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as
deprecated.

Approved by:		portmgr (tcberner)
2022-09-07 23:10:59 +02:00

84 lines
2.7 KiB
Makefile

PORTNAME= siod
PORTVERSION= 3.6.2
CATEGORIES= lang scheme
MASTER_SITES= http://people.delphiforums.com/gjc/
DISTNAME= siod
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION} # Upstream aren't versioned :(
MAINTAINER= mi@aldan.algebra.com
COMMENT= Small footprint implementation of the Scheme programming language
WWW= https://people.delphiforums.com/gjc/siod.html
LICENSE= LGPL21 # Declared inside slib.c
USES= uidfix tar:tgz dos2unix
USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/siod
DOS2UNIX_FILES= sql_oracle.c ss.c siod.scm
OPTIONS_DEFINE= SQL_SYBASE GD NDBM REGEX SS DOCS
OPTIONS_DEFINE_i386=SQL_ORACLE # oracle-client port only available for i386
OPTIONS_DEFAULT=NDBM REGEX SS
SQL_ORACLE_DESC=Build Oracle client-module (i386 only)
SQL_SYBASE_DESC=Build Sybase (and MS-SQL) client-module (using FreeTDS)
SS_DESC= Sockets support - required for any network programs
NDBM_DESC= Support for NDBM-databases
NO_WRKSUBDIR= yes
EXTRACT_AFTER_ARGS=--exclude md5\* --exclude regex.h --exclude reg????*.c
MAKE_ARGS= VPATH=${WRKSRC} MODULES=${MODULES:Q}
MAKEFILE= ${FILESDIR}/BSDmakefile
MAKE_ENV= MKDIR=${MKDIR:Q} STAGEDIR=${STAGEDIR:Q}
MAKE_ENV+= MAN1PREFIX=${MAN1PREFIX} PREFIX=${PREFIX:Q}
MAKE_ENV+= INSTALL_MAN=${INSTALL_MAN:Q} INSTALL_SCRIPT=${INSTALL_SCRIPT:Q}
MAKE_ENV+= INSTALL_DATA=${INSTALL_DATA:Q}
MODULES= acct statfs tar parser_pratt
SQL_SYBASE_LIB_DEPENDS= libct.so:databases/freetds # Or freetds-devel
GD_LIB_DEPENDS= libgd.so:graphics/gd # Or ukrainian/gd
REGEX_LIB_DEPENDS= libgnuregex.so:devel/libgnuregex
OPTIONS_SUB= yes
SQL_ORACLE_BUILD_DEPENDS=${LOCALBASE}/oracle8-client/lib/libclntsh.a:databases/oracle8-client
.if "${PREFIX}" != "/usr/local"
post-patch:
${REINPLACE_CMD} 's|/usr/local|${PREFIX}|g' ${WRKSRC}/slib.c \
${WRKSRC}/*.man
.endif
post-build:
${REINPLACE_CMD} -e 's|\./siod|env LD_LIBRARY_PATH=lib siod/siod|g' \
-e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/makefile
${MAKE} -C ${WRKSRC} -f makefile build_driver
.include <bsd.port.options.mk>
MODULES+= ${SELECTED_OPTIONS:NDOCS:tl}
# XXX This should not be necessary:
.if ${ARCH} != i386
PLIST_SUB+= SQL_ORACLE="@comment "
.endif
do-configure:
${MKDIR} ${WRKSRC}/lib
${LN} -sf ${FILESDIR}/BSDmakefile.lib ${WRKSRC}/lib/BSDmakefile
.for s in ${MODULES}
${MKDIR} ${WRKSRC}/$s
${SED} "s,%%MODULE%%,$s,g" ${FILESDIR}/BSDmakefile.module > \
${WRKSRC}/$s/BSDmakefile
.endfor
.for s in siod sample
${MKDIR} ${WRKSRC}/$s
${SED} "s,%%PROG%%,$s,g" ${FILESDIR}/BSDmakefile.prog > \
${WRKSRC}/$s/BSDmakefile
.endfor
post-install-DOCS-off:
${RM} ${STAGEDIR}${PREFIX}/lib/siod/siod.html
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${MV} ${STAGEDIR}${PREFIX}/lib/siod/siod.html ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>