2002-07-16 02:37:16 +02:00
|
|
|
# New ports collection makefile for: dclib
|
|
|
|
# Date created: Wed 10 Jul 2002
|
|
|
|
# Whom: Sverrir Valgeirsson <e96sv@yahoo.se> and
|
|
|
|
# Amar Takhar <verm@drunkmonk.net> et al
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dclib
|
2002-10-05 21:14:39 +02:00
|
|
|
PORTVERSION= 0.1.11
|
2002-07-16 02:37:16 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
|
|
http://ftp.kde.com/Networking_Internet/File_Sharing/Direct_Connect_4_Linux/ \
|
|
|
|
http://download.berlios.de/dcgui/ \
|
|
|
|
ftp://ftp.kde.com/Networking_Internet/File_Sharing/Direct_Connect_4_Linux/ \
|
|
|
|
http://dc.ketelhot.de/files/dcgui/unstable/source/
|
|
|
|
MASTER_SITE_SUBDIR= dc-gui
|
2002-10-05 21:14:39 +02:00
|
|
|
DISTNAME= dclib-0.1beta11
|
2002-07-16 02:37:16 +02:00
|
|
|
|
|
|
|
MAINTAINER= e96sv@yahoo.se
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Direct connect interface library for dcgui
|
2003-03-31 17:14:03 +02:00
|
|
|
FORBIDDEN= "security bug--see <URL:http://dc.ketelhot.de/news.php>"
|
2002-07-16 02:37:16 +02:00
|
|
|
|
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
|
|
|
xml2.5:${PORTSDIR}/textproc/libxml2
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-xml-prefix=${LOCALBASE}
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# fix libxml2 test
|
2002-10-05 21:14:39 +02:00
|
|
|
# and, do not add optimizations because it might break some ARCHs, e.g.,
|
|
|
|
# alpha
|
|
|
|
|
2002-07-16 02:37:16 +02:00
|
|
|
@${REINPLACE_CMD} -e 's@xmlversion.h@libxml/xmlversion.h@; \
|
2002-10-05 21:14:39 +02:00
|
|
|
s@-O2@@; \
|
2002-07-16 02:37:16 +02:00
|
|
|
s@%%LOCALBASE%%@${LOCALBASE}@g' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2002-10-05 21:14:39 +02:00
|
|
|
@${REINPLACE_CMD} -e "s@Lu@llu@g" \
|
|
|
|
${WRKSRC}/dclib/cstring.cpp \
|
|
|
|
${WRKSRC}/dclib/cquerymanager.cpp
|
2002-07-16 02:37:16 +02:00
|
|
|
# malloc.h is deprecated in favor of stdlib.h
|
|
|
|
@${FIND} ${WRKSRC} -type f -name "*.cpp" -o -name "*.h" | \
|
|
|
|
${XARGS} -n 10 ${REINPLACE_CMD} 's|malloc\.h|stdlib.h|'
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|