Changeset View
Changeset View
Standalone View
Standalone View
chinese/pcmanx/Makefile
Show All 13 Lines | |||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
USE_GNOME= gtk20 intlhack | USE_GNOME= gtk20 intlhack | ||||
USES= gmake iconv pkgconfig tar:xz | USES= gmake iconv pkgconfig tar:xz | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
OPTIONS_DEFINE= NLS DEBUG DOCKLET NOTIFIER LIBNOTIFY NANCY MOUSE EXTERNAL IPLOOKUP PROXY | OPTIONS_DEFINE= NLS DEBUG DOCKLET NOTIFIER LIBNOTIFY NANCY MOUSE EXTERNAL IPLOOKUP PROXY | ||||
OPTIONS_DEFAULT= DOCKLET NOTIFIER NANCY MOUSE EXTERNAL | OPTIONS_DEFAULT= DOCKLET NOTIFIER NANCY MOUSE EXTERNAL | ||||
OPTIONS_SUB= yes | |||||
DOCKLET_DESC= Docklet / system tray support | DOCKLET_DESC= Docklet / system tray support | ||||
NOTIFIER_DESC= Popup notifier support | NOTIFIER_DESC= Popup notifier support | ||||
LIBNOTIFY_DESC= Popup notifier support by libnotify | LIBNOTIFY_DESC= Popup notifier support by libnotify | ||||
NANCY_DESC= Nancy bot support | NANCY_DESC= Nancy bot support | ||||
MOUSE_DESC= Mouse click and wheel support | MOUSE_DESC= Mouse click and wheel support | ||||
EXTERNAL_DESC= External SSH/Telnet support | EXTERNAL_DESC= External SSH/Telnet support | ||||
IPLOOKUP_DESC= IP location lookup support | IPLOOKUP_DESC= IP location lookup support | ||||
PROXY_DESC= Proxy support | PROXY_DESC= Proxy support | ||||
.include <bsd.port.options.mk> | NLS_USES= gettext | ||||
NLS_USES_OFF= gettext-tools | |||||
NLS_CPPFLAGS= -I${LOCALBASE}/include | |||||
NLS_LDFLAGS= -L${LOCALBASE}/lib | |||||
NLS_CONFIGURE_ENABLE=nls | |||||
.if ${PORT_OPTIONS:MNLS} | DEBUG_CONFIGURE_ENABLE= debug | ||||
USES+= gettext | DOCKLET_CONFIGURE_ENABLE= docklet | ||||
PLIST_SUB+= NLS="" | NOTIFIER_CONFIGURE_ENABLE= notifier | ||||
CPPFLAGS+= -I${LOCALBASE}/include | LIBNOTIFY_CONFIGURE_ENABLE= libnotify | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LIBNOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify | ||||
.else | NANCY_CONFIGURE_ENABLE= nancy | ||||
USES+= gettext | MOUSE_CONFIGURE_ENABLE= mouse | ||||
CONFIGURE_ARGS+=--disable-nls | EXTERNAL_CONFIGURE_ENABLE= external | ||||
PLIST_SUB+= NLS="@comment " | IPLOOKUP_CONFIGURE_ENABLE= iplookup | ||||
.endif | PROXY_CONFIGURE_ENABLE= proxy | ||||
.if ${PORT_OPTIONS:MDEBUG} | |||||
CONFIGURE_ARGS+=--enable-debug | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MDOCKLET) | |||||
CONFIGURE_ARGS+=--disable-docklet | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MNOTIFIER) | |||||
CONFIGURE_ARGS+=--disable-notifier | |||||
.endif | |||||
.if ${PORT_OPTIONS:MLIBNOTIFY} | |||||
CONFIGURE_ARGS+=--enable-libnotify | |||||
LIB_DEPENDS+= libnotify.so:${PORTSDIR}/devel/libnotify | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MNANCY) | |||||
CONFIGURE_ARGS+=--disable-nancy | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MMOUSE) | |||||
CONFIGURE_ARGS+=--disable-mouse | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MEXTERNAL) | |||||
CONFIGURE_ARGS+=--disable-external | |||||
.endif | |||||
.if ${PORT_OPTIONS:MIPLOOKUP} | |||||
CONFIGURE_ARGS+=--enable-iplookup | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPROXY} | |||||
CONFIGURE_ARGS+=--enable-proxy | |||||
.endif | |||||
post-install: | post-install: | ||||
@# create directory for user friendly | @# create directory for user friendly | ||||
${MKDIR} ${STAGEDIR}${DATADIR}/script/ | ${MKDIR} ${STAGEDIR}${DATADIR}/script/ | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |