openbsd-ports/net/ekg/Makefile

40 lines
826 B
Makefile

# $OpenBSD: Makefile,v 1.15 2021/11/28 17:23:07 tb Exp $
COMMENT= Gadu-Gadu IM protocol client
DISTNAME= ekg-1.7
REVISION= 5
CATEGORIES= net
HOMEPAGE= http://ekg.chmurka.net/
# GPLv2 - LGPL
PERMIT_PACKAGE= Yes
WANTLIB= c crypto gadu curses pthread ssl z
MASTER_SITES= ${HOMEPAGE}archive/
LIB_DEPENDS= net/libgadu
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \
CPPFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
CONFIGURE_ARGS= --enable-dynamic \
--with-pthread \
--without-libjpeg \
--without-libgsm \
--without-libungif
# avoid patching numerous duplicate symbols in numerous files
CFLAGS+= -fcommon
NO_TEST= Yes
pre-configure:
# External libgadu support
@cd ${WRKSRC}/src && sed -i 's|"libgadu.h"|<libgadu.h>|' *.c *.h
.include <bsd.port.mk>