Changeset View
Changeset View
Standalone View
Standalone View
head/cad/geda-gattrib/Makefile
Show All 25 Lines | |||||
USE_GNOME= gtk20 glib20 | USE_GNOME= gtk20 glib20 | ||||
INSTALLS_ICONS= yes | INSTALLS_ICONS= yes | ||||
CONFIGURE_ARGS= --with-docdir="${DOCSDIR}" --disable-update-mime-database \ | CONFIGURE_ARGS= --with-docdir="${DOCSDIR}" --disable-update-mime-database \ | ||||
--disable-update-desktop-database | --disable-update-desktop-database | ||||
CPPFLAGS+= -I${LOCALBASE}/include | CPPFLAGS+= -I${LOCALBASE}/include | ||||
LDFLAGS+= -L${LOCALBASE}/lib | LDFLAGS+= -L${LOCALBASE}/lib | ||||
OPTIONS_DEFINE= NLS | OPTIONS_DEFINE= NLS | ||||
OPTIONS_SUB= yes | |||||
.include <bsd.port.options.mk> | NLS_USES= gettext | ||||
NLS_CONFIGURE_ENABLE= nls | |||||
.if ${PORT_OPTIONS:MNLS} | |||||
USES+= gettext | |||||
PLIST_SUB+= NLS="" | |||||
.else | |||||
CONFIGURE_ARGS+= --disable-nls | |||||
PLIST_SUB+= NLS="@comment " | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -E \ | @${REINPLACE_CMD} -E \ | ||||
-e "s,^(DATADIR[[:space:]]*=[[:space:]]*)gEDA,\1geda," \ | -e "s,^(DATADIR[[:space:]]*=[[:space:]]*)gEDA,\1geda," \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
@${REINPLACE_CMD} -e 's|>n_bytes|>x_n_bytes|g' \ | @${REINPLACE_CMD} -e 's|>n_bytes|>x_n_bytes|g' \ | ||||
-e 's|>text_size|>x_text_size|g' \ | -e 's|>text_size|>x_text_size|g' \ | ||||
${WRKSRC}/src/gtkitementry_2_2.c | ${WRKSRC}/src/gtkitementry_2_2.c | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |