mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
ab3c047ab5
- Convert to USES=libtool, options helpers
55 lines
1.2 KiB
Makefile
55 lines
1.2 KiB
Makefile
# Created by: Aleksander Fafula <alex@BSDGuru.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libgadu
|
|
DISTVERSION= 1.11.4
|
|
PORTEPOCH= 1
|
|
CATEGORIES= polish net-im
|
|
|
|
MAINTAINER= pawel@FreeBSD.org
|
|
COMMENT= Instant messaging library for Gadu-Gadu protocol
|
|
|
|
LICENSE= LGPL21
|
|
|
|
CONFLICTS= pl-ekg-1.[0-6]*
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= wojtekka
|
|
GH_COMMIT= 3eafeba
|
|
|
|
USES= gmake libtool pkgconfig tar:bzip2
|
|
USE_AUTOTOOLS= aclocal autoconf autoheader automake libtoolize
|
|
ACLOCAL_ARGS= -I m4
|
|
AUTOMAKE_ARGS= --add-missing
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --enable-shared --disable-static --with-pthread \
|
|
--disable-tests --without-gnutls
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_FILES= include/libgadu.h \
|
|
lib/libgadu.so \
|
|
lib/libgadu.so.3 \
|
|
lib/libgadu.so.3.13.0 \
|
|
libdata/pkgconfig/libgadu.pc
|
|
|
|
OPTIONS_DEFINE= OPENSSL
|
|
OPTIONS_DEFAULT=OPENSSL
|
|
|
|
OPENSSL_CONFIGURE_WITH= openssl
|
|
OPENSSL_USE= OPENSSL=yes
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} '/^pkgconfigdir/ s|libdir)|prefix)/libdata|' \
|
|
${WRKSRC}/pkgconfig/Makefile
|
|
|
|
pre-install:
|
|
# OpenSSL from base system lacks .pc file for pkgconfig
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
|
@${REINPLACE_CMD} -e 's|openssl| |g' ${WRKSRC}/pkgconfig/libgadu.pc
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|