60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
29 lines
1,004 B
Makefile
29 lines
1,004 B
Makefile
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= cld
|
|
PORTVERSION= 20150505
|
|
CATEGORIES= devel
|
|
MASTER_SITES= LOCAL/demon
|
|
PKGNAMESUFFIX= 2
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
COMMENT= Compact language detector library
|
|
|
|
LICENSE= APACHE20
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s#g++#${CXX}#" ${WRKSRC}/internal/compile_libs.sh
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/internal && ${SETENV} ${MAKE_ENV} ./compile_libs.sh
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/cld/public ${STAGEDIR}${PREFIX}/include/cld/internal
|
|
${INSTALL_DATA} ${WRKSRC}/public/encodings.h ${WRKSRC}/public/compact_lang_det.h ${STAGEDIR}${PREFIX}/include/cld/public/
|
|
${INSTALL_DATA} ${WRKSRC}/internal/lang_script.h ${WRKSRC}/internal/integral_types.h ${WRKSRC}/internal/generated_language.h ${WRKSRC}/internal/generated_ulscript.h ${STAGEDIR}${PREFIX}/include/cld/internal/
|
|
${INSTALL_LIB} ${WRKSRC}/internal/libcld2.so ${WRKSRC}/internal/libcld2_full.so ${STAGEDIR}${PREFIX}/lib/
|
|
|
|
.include <bsd.port.mk>
|