openbsd-ports/net/amsn/Makefile

67 lines
1.5 KiB
Makefile
Raw Normal View History

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
V= 0.98.9
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/
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
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 \
graphics/png
RUN_DEPENDS+= ${MODTK_RUN_DEPENDS} \
2010-11-19 17:31:32 -05:00
security/tcltls \
x11/bwidget \
devel/desktop-file-utils
BUILD_DEPENDS= ${MODTK_BUILD_DEPENDS} \
security/tcltls
2007-10-22 15:32:24 -04:00
MODTK_THREADED= Yes
2010-09-14 08:35:58 -04:00
MODULES= devel/gettext \
x11/tk
2007-10-22 15:32:24 -04:00
USE_GMAKE= Yes
MAKE_FLAGS= verbose=yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS+=--disable-libv4l \
--disable-upnp \
--with-tcl="${MODTCL_LIBDIR}" \
--with-tk="${MODTK_LIBDIR}"
2007-10-22 15:32:24 -04:00
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include \
-I${LOCALBASE}/include/libpng" \
LDFLAGS="-lm -L${LOCALBASE}/lib" \
TK_INC_SPEC="${MODTK_INCDIR}/generic" \
TCLSH="${MODTCL_BIN}"
2007-10-22 15:32:24 -04:00
WRKDIST= ${WRKDIR}/amsn-$V/
2013-03-11 07:35:43 -04:00
NO_TEST= Yes # Generic tcl/tk tests.
2007-10-22 15:32:24 -04:00
pre-configure:
@${SUBST_CMD} ${WRKSRC}/amsn*
@${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>