2013-03-11 07:35:43 -04:00
|
|
|
#$OpenBSD: Makefile,v 1.26 2013/03/11 11:35:45 espie Exp $
|
2007-10-22 15:32:24 -04:00
|
|
|
|
|
|
|
COMMENT= open source MSN Messenger clone
|
|
|
|
|
2012-08-12 13:33:04 -04:00
|
|
|
V= 0.98.9
|
2010-09-14 08:34:42 -04:00
|
|
|
DISTNAME= amsn-$V-src
|
|
|
|
PKGNAME= ${DISTNAME:S/-src//}
|
2012-09-30 03:49:04 -04:00
|
|
|
REVISION= 2
|
2007-10-22 15:32:24 -04:00
|
|
|
CATEGORIES= net
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.amsn-project.net/
|
|
|
|
|
2010-09-14 14:34:14 -04:00
|
|
|
MAINTAINER= Azwaw OUSADOU <bsdmaniak@gmail.com>
|
|
|
|
|
2010-09-14 08:35:58 -04:00
|
|
|
# GPLv2
|
2007-10-22 15:32:24 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
|
2011-07-07 09:14:29 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=project/amsn/amsn/${V}/}
|
2007-10-22 15:32:24 -04:00
|
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
|
2012-09-30 03:49:04 -04:00
|
|
|
WANTLIB += ICE SM X11 jpeg m png stdc++ z
|
2007-10-22 15:32:24 -04:00
|
|
|
|
2010-11-19 17:31:32 -05:00
|
|
|
LIB_DEPENDS= graphics/jpeg \
|
2012-09-28 10:25:06 -04:00
|
|
|
graphics/png
|
2008-08-31 13:16:22 -04:00
|
|
|
RUN_DEPENDS+= ${MODTK_RUN_DEPENDS} \
|
2010-11-19 17:31:32 -05:00
|
|
|
security/tcltls \
|
|
|
|
x11/bwidget \
|
|
|
|
devel/desktop-file-utils
|
2008-08-31 13:16:22 -04:00
|
|
|
BUILD_DEPENDS= ${MODTK_BUILD_DEPENDS} \
|
2012-08-13 10:07:01 -04:00
|
|
|
security/tcltls
|
2007-10-22 15:32:24 -04:00
|
|
|
|
2010-09-14 08:34:42 -04:00
|
|
|
MODTK_THREADED= Yes
|
2010-09-14 08:35:58 -04:00
|
|
|
MODULES= devel/gettext \
|
2010-09-14 08:35:12 -04:00
|
|
|
x11/tk
|
2008-08-31 13:16:22 -04:00
|
|
|
|
2007-10-22 15:32:24 -04:00
|
|
|
USE_GMAKE= Yes
|
|
|
|
MAKE_FLAGS= verbose=yes
|
2008-02-02 16:17:49 -05:00
|
|
|
CONFIGURE_STYLE=gnu
|
2011-07-07 09:14:29 -04:00
|
|
|
CONFIGURE_ARGS+=--disable-libv4l \
|
|
|
|
--disable-upnp \
|
|
|
|
--with-tcl="${MODTCL_LIBDIR}" \
|
|
|
|
--with-tk="${MODTK_LIBDIR}"
|
2007-10-22 15:32:24 -04:00
|
|
|
|
2011-07-08 16:38:00 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include \
|
2012-08-13 10:07:01 -04:00
|
|
|
-I${LOCALBASE}/include/libpng" \
|
2010-09-14 08:34:42 -04:00
|
|
|
LDFLAGS="-lm -L${LOCALBASE}/lib" \
|
2008-08-31 13:16:22 -04:00
|
|
|
TK_INC_SPEC="${MODTK_INCDIR}/generic" \
|
|
|
|
TCLSH="${MODTCL_BIN}"
|
2007-10-22 15:32:24 -04:00
|
|
|
|
2010-09-14 08:34:42 -04:00
|
|
|
WRKDIST= ${WRKDIR}/amsn-$V/
|
|
|
|
|
2013-03-11 07:35:43 -04:00
|
|
|
NO_TEST= Yes # Generic tcl/tk tests.
|
2010-09-14 08:34:42 -04:00
|
|
|
|
2007-10-22 15:32:24 -04:00
|
|
|
pre-configure:
|
2008-08-31 13:16:22 -04:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/amsn*
|
2010-09-14 08:34:42 -04:00
|
|
|
@${MODTCL_WISH_ADJ} ${WRKSRC}/amsn
|
2007-10-22 15:32:24 -04:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.for a in amsn amsn-remote amsn-remote-CLI
|
|
|
|
cd ${PREFIX}/bin && ln -s ../share/amsn/$a
|
|
|
|
.endfor
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/amsn
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/{FAQ,README} ${PREFIX}/share/doc/amsn
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/{FAQ,README}* ${PREFIX}/share/doc/amsn
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|