- Add license (GPLv2)
- Add NLS Option and OPTIONS_SUB - Change REINPLACE, install conditional NLS - Strip libraries - Recreate pkg-plist with make makeplist PR: ports/179336 Submitted by: nemysis (self)
This commit is contained in:
parent
e889c62d8f
commit
0c9d4994a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348002
@ -11,32 +11,45 @@ DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= General drawing canvas from dia dialog editor
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USES= gmake pathfix pkgconfig
|
||||
USE_GNOME= pygnome2
|
||||
USE_PYTHON= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
USE_LDCONFIG= yes
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= PRINT
|
||||
OPTIONS_DEFINE= NLS PRINT
|
||||
OPTIONS_DEFAULT=PRINT
|
||||
PRINT_DESC= GNOME print support
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
PRINT_CONFIGURE_ENABLE= gnome-print
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MPRINT}
|
||||
USE_GNOME+= libgnomeprintui
|
||||
CONFIGURE_ARGS+=--enable-gnome-print
|
||||
.else
|
||||
CONFIGURE_ARGS+=--disable-gnome-print
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|unit_tests doc|unit_tests|g' ${WRKSRC}/Makefile.in
|
||||
@${REINPLACE_CMD} -e '/SUBDIRS/s|doc||' ${WRKSRC}/Makefile.in
|
||||
|
||||
.if ! ${PORT_OPTIONS:MNLS}
|
||||
@${REINPLACE_CMD} -e 's|po diacanvas po |diacanvas |' \
|
||||
${WRKSRC}/Makefile.in
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}.so.0
|
||||
.for l in _canvasmodule shapemodule viewmodule geometrymodule
|
||||
${STRIP_CMD} ${STAGEDIR}${PYTHON}${PYTHON_SITELIBDIR}/diacanvas/${l}.so
|
||||
.endfor
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -46,13 +46,6 @@ lib/libdiacanvas2.a
|
||||
lib/libdiacanvas2.la
|
||||
lib/libdiacanvas2.so
|
||||
lib/libdiacanvas2.so.0
|
||||
libdata/pkgconfig/diacanvas2.pc
|
||||
share/locale/nl/LC_MESSAGES/diacanvas.mo
|
||||
share/pygtk/2.0/defs/dia-boxed.defs
|
||||
share/pygtk/2.0/defs/diacanvas.defs
|
||||
share/pygtk/2.0/defs/diageometry.defs
|
||||
share/pygtk/2.0/defs/diashape.defs
|
||||
share/pygtk/2.0/defs/diaview.defs
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/__init__.py
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/__init__.pyc
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/__init__.pyo
|
||||
@ -71,5 +64,12 @@ share/pygtk/2.0/defs/diaview.defs
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.a
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.la
|
||||
%%PYTHON_SITELIBDIR%%/diacanvas/viewmodule.so
|
||||
libdata/pkgconfig/diacanvas2.pc
|
||||
%%NLS%%share/locale/nl/LC_MESSAGES/diacanvas.mo
|
||||
share/pygtk/2.0/defs/dia-boxed.defs
|
||||
share/pygtk/2.0/defs/diacanvas.defs
|
||||
share/pygtk/2.0/defs/diageometry.defs
|
||||
share/pygtk/2.0/defs/diashape.defs
|
||||
share/pygtk/2.0/defs/diaview.defs
|
||||
@dirrm %%PYTHON_SITELIBDIR%%/diacanvas
|
||||
@dirrm include/diacanvas
|
||||
|
Loading…
Reference in New Issue
Block a user