Files
ports/dns/libpsl/Makefile
T
Tijl Coosemans b6ec06f079 */*: Use C.UTF-8 locale
Ports 02f27a83b4 fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters.  USE_LOCALE was introduced to let ports use another
locale if they needed it.  The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.

Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE.  The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.

PR:		295945
Exp-run by:	antoine
2026-06-30 22:03:57 +02:00

50 lines
1.4 KiB
Makefile

PORTNAME= libpsl
PORTVERSION= 0.22.0
CATEGORIES= dns
MASTER_SITES= https://github.com/rockdaboot/libpsl/releases/download/${PORTVERSION}/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= C library to handle the Public Suffix List
WWW= https://github.com/rockdaboot/libpsl
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= public_suffix_list>=0:dns/public_suffix_list
USES= localbase:ldflags meson pkgconfig python:build shebangfix tar:lz
BINARY_ALIAS= python3=${PYTHON_CMD}
MESON_ARGS= --default-library=both \
-Dbuiltin=true \
-Ddocs=false \
-Dpsl_file=${LOCALBASE}/share/public_suffix_list/public_suffix_list.dat \
-Dpsl_testfile=${LOCALBASE}/share/public_suffix_list/test_psl.txt
USE_LDCONFIG= yes
SHEBANG_FILES= src/psl-make-dafsa
TEST_TARGET= test
OPTIONS_SINGLE= IDNA
OPTIONS_SINGLE_IDNA= ICU IDN IDN2
OPTIONS_DEFAULT=IDN2
ICU_DESC= Use devel/icu (IDNA2008 UTS\#46 library)
IDN_DESC= Use dns/libidn (IDNA2003 library)
IDN2_DESC= Use dns/libidn2 (IDNA2008 library)
ICU_LIB_DEPENDS= libicuuc.so:devel/icu
ICU_MESON_ON= -Druntime=libicu
IDN_LIB_DEPENDS= libidn.so:dns/libidn \
libunistring.so:devel/libunistring
IDN_MESON_ON= -Druntime=libidn
IDN_USES= iconv
IDN2_LIB_DEPENDS= libidn2.so:dns/libidn2 \
libunistring.so:devel/libunistring
IDN2_MESON_ON= -Druntime=libidn2
IDN2_USES= iconv
post-install:
${RM} ${STAGEDIR}${PREFIX}/bin/psl-make-dafsa ${STAGEDIR}${PREFIX}/share/man/man1/psl-make-dafsa.1
.include <bsd.port.mk>