02f27a83b4
locale set by the user. Add LANG=C and LC_ALL=C at the beginning of bsd.port.mk and export them so all commands are executed with the C locale. LC_ALL=C overrides all other LC_* variables. LANG is used by setlocale(3) as default value for LC_* variables, so normally it isn't used when LC_ALL is set, but there's code out there that looks at LANG directly so it's safer to set it as well. The only commands not captured by this are != assignments before any inclusion of bsd.port.*mk. Introduce USE_LOCALE=<locale> that adds LANG=<locale> and LC_ALL=<locale> to CONFIGURE_ENV and MAKE_ENV so upstream build systems can be executed with a different locale (e.g. USE_LOCALE=en_US.UTF-8). PR: 215882 Exp-run by: antoine Approved by: portmgr (antoine)
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libopenbsd
|
|
PORTVERSION= r298107
|
|
CATEGORIES= devel
|
|
MASTER_SITES= LOCAL/jbeich \
|
|
https://svn.freebsd.org/base/head/lib/${PORTNAME}/:svn
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= imsg and ohash routines from OpenBSD libutil
|
|
|
|
LICENSE= ISCL
|
|
|
|
USES= uidfix tar:xz
|
|
MAKE_ENV= SHLIB_MAJOR=0 NO_PROFILE=1
|
|
MAKE_ARGS= INCLUDEDIR="${PREFIX}/include" LIBDIR="${PREFIX}/lib" \
|
|
MANDIR="${PREFIX}/man/man"
|
|
USE_LDCONFIG= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
#
|
|
# To update snapshot: make makesum BOOTSTRAP=
|
|
# Specific snapshot: make makesum SVN_FETCH= PORTVERSION=r1234
|
|
#
|
|
.if defined(BOOTSTRAP)
|
|
SVN_REV!= svn info ${MASTER_SITES:M*\:svn:S/:svn//} | \
|
|
${SED} -n 's/^Last Changed Rev: //p'
|
|
PORTVERSION:= r${SVN_REV}
|
|
.else
|
|
SVN_REV?= ${PORTVERSION:S/r//}
|
|
.endif
|
|
|
|
.if defined(BOOTSTRAP) || defined(SVN_FETCH)
|
|
FETCH_DEPENDS+= svn:devel/subversion
|
|
|
|
NO_CHECKSUM= yes
|
|
|
|
do-fetch:
|
|
${MKDIR} ${WRKDIR}
|
|
svn export -r${SVN_REV} ${_MASTER_SITES_svn} ${WRKSRC}
|
|
(cd ${WRKDIR} && ${TAR} cJvf \
|
|
${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
|
|
--uid 0 --gid 0 ${DISTNAME})
|
|
. ifmake makesum
|
|
${REINPLACE_CMD} -i '' '/^PORTVERSION=/s/r.*/r${SVN_REV}/' \
|
|
${MASTERDIR}/Makefile
|
|
. endif
|
|
. if ${USER} == ${MAINTAINER:C/@.*//}
|
|
-scp ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} \
|
|
freefall.freebsd.org:public_distfiles/
|
|
. endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|