openbsd-ports/net/amsn/Makefile
steven 308485041e update to 0.97
based on a diff by Azwaw Ousadou (bsdmaniak at gmail)
2008-02-02 21:17:49 +00:00

53 lines
1.4 KiB
Makefile

#$OpenBSD: Makefile,v 1.3 2008/02/02 21:17:49 steven Exp $
COMMENT= open source MSN Messenger clone
DISTNAME= amsn-0.97
CATEGORIES= net
HOMEPAGE= http://www.amsn-project.net/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=amsn/}
EXTRACT_SUFX= .tar.bz2
WANTLIB= ICE SM X11 m z stdc++
LIB_DEPENDS= jpeg::graphics/jpeg \
png::graphics/png
RUN_DEPENDS= :tk-8.4.*:x11/tk/8.4 \
::security/tcltls \
::x11/bwidget \
:desktop-file-utils-*:devel/desktop-file-utils
BUILD_DEPENDS= :tk-8.4.*:x11/tk/8.4 \
::security/tcltls
USE_GMAKE= Yes
MAKE_FLAGS= verbose=yes
CONFIGURE_STYLE=gnu
CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl8.4 \
--with-tk=${LOCALBASE}/lib/tk8.4
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
LDFLAGS="-lm -L${LOCALBASE}/lib -fPIC" \
TK_INC_SPEC="${LOCALBASE}/include/tk8.4/generic" \
TCLSH="${LOCALBASE}/bin/tclsh8.4"
pre-configure:
perl -pi -e 's|__LOCALBASE__|${LOCALBASE}|' ${WRKSRC}/amsn*
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>