1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/deskutils/chmsee/Makefile
Beat Gaetzi 734349b51e - Move libxul 1.9.2 to www/libxul19
- Update www/libxul to 10.0.7
- Update all dependent ports to use www/libxul19 (no functional changes)
- Bump PORTREVISION on ports where libxul is a run dependency as the
  resulting package will change.

Submitted by:	Jan Beich <jbeich@tormail.org>
With hat:	gecko
2012-09-10 19:19:32 +00:00

56 lines
1.4 KiB
Makefile

# New ports collection makefile for: chmsee
# Date created: 10 June 2006
# Whom: Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= chmsee
PORTVERSION= 1.3.1.1
PORTREVISION= 3
CATEGORIES= deskutils gnome
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
MAINTAINER= sylvio@FreeBSD.org
COMMENT= A viewer for Microsoft Help "CHM" files
LIB_DEPENDS= chm.0:${PORTSDIR}/misc/chmlib \
gcrypt.18:${PORTSDIR}/security/libgcrypt
LICENSE= GPLv2
USE_GNOME= gnomehier libglade2
USE_GECKO= libxul19
USE_GETTEXT= yes
USE_CMAKE= yes
CMAKE_ARGS= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=TRUE
INSTALLS_ICONS= yes
MAN1= chmsee.1
.include <bsd.port.pre.mk>
.if defined(GECKO) && ${GECKO:S/19//:Mlibxul}!=""
GTKMOZEMBED_LIB="${GECKO:S/19//}-embedding nspr"
.else
GTKMOZEMBED_LIB="${GECKO}-gtkmozembed"
CFLAGS+= -I${LOCALBASE}/include/${GECKO}/commandhandler \
-I${LOCALBASE}/include/${GECKO}/locale \
-DGECKO_LIB_ROOT="\\\"\"${LOCALBASE}/lib/${GECKO}\"\\\""
.endif
post-extract:
@(cd ${WRKSRC}/data; ${CP} -f chmsee.desktop.in chmsee.desktop.skel)
post-patch:
@${REINPLACE_CMD} -e \
'/REQUIRED/s|libxul-.*=1.9.0.999|${GTKMOZEMBED_LIB}|g ; \
/FLAVOUR/s|libxul|${GECKO:S/19//}|g' ${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e \
's|.desktop.in|.desktop.skel|g' ${WRKSRC}/data/CMakeLists.txt
post-install:
${INSTALL_MAN} ${WRKSRC}/doc/chmsee.1 ${MANPREFIX}/man/man1
.include <bsd.port.post.mk>