aboutsummaryrefslogtreecommitdiff
path: root/net-im/mbpurple/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/mbpurple/Makefile')
-rw-r--r--net-im/mbpurple/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/net-im/mbpurple/Makefile b/net-im/mbpurple/Makefile
index 2c1d70e4d338..daa55af30845 100644
--- a/net-im/mbpurple/Makefile
+++ b/net-im/mbpurple/Makefile
@@ -2,33 +2,22 @@
PORTNAME= mbpurple
PORTVERSION= 0.3.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+PROJECTHOST= microblog-purple
MAINTAINER= ports@FreeBSD.org
COMMENT= Integrate Twitter with Pidgin (AKA microblog-purple)
-BUILD_DEPENDS= ${LOCALBASE}/bin/pidgin:${PORTSDIR}/net-im/pidgin \
- pkgconf>0:${PORTSDIR}/devel/pkgconf
+BUILD_DEPENDS= ${LOCALBASE}/bin/pidgin:${PORTSDIR}/net-im/pidgin
RUN_DEPENDS= ${LOCALBASE}/bin/pidgin:${PORTSDIR}/net-im/pidgin
-PROJECTHOST= microblog-purple
-USE_GMAKE= yes
+USES= gmake pkgconfig
+MAKE_ARGS= PREFIX="${PREFIX}" LIBDIR="${PREFIX}/lib" \
+ PURPLE_DATAROOT_DIR="${PREFIX}/share"
-NO_STAGE= yes
post-patch:
- @${CP} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.Dist
- @${SED} -e 's#make -C#gmake -C#' \
- ${WRKSRC}/Makefile.Dist > ${WRKSRC}/Makefile
- @${CP} ${WRKSRC}/global.mak ${WRKSRC}/global.mak.Dist
- @${SED} -e 's#^PREFIX :=.*#PREFIX = ${PREFIX}#' \
- -e 's#^LIBDIR :=.*#LIBDIR = ${LOCALBASE}/lib#' \
- -e 's#^PURPLE_PLUGIN_DIR :=.*#PURPLE_PLUGIN_DIR = ${PREFIX}/lib/purple-2#' \
- -e 's#^PURPLE_CACERTS_DIR :=.*#PURPLE_CACERTS_DIR = ${PREFIX}/share/purple/ca-certs#' \
- ${WRKSRC}/global.mak.Dist > ${WRKSRC}/global.mak
-
-do-build:
- cd ${WRKSRC} && ${GMAKE}
+ @${REINPLACE_CMD} 's/make -C/$$(MAKE) -C/' ${WRKSRC}/Makefile
.include <bsd.port.mk>