aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x11/xdialog/Makefile14
-rw-r--r--x11/xdialog/pkg-plist1
2 files changed, 10 insertions, 5 deletions
diff --git a/x11/xdialog/Makefile b/x11/xdialog/Makefile
index 9608287a4f25..d56cc6cc55b4 100644
--- a/x11/xdialog/Makefile
+++ b/x11/xdialog/Makefile
@@ -20,15 +20,19 @@ USE_BZIP2= yes
USE_GTK= yes
USE_X_PREFIX= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
MAN1= Xdialog.1
-.if !defined(NOPORTDOCS)
+post-patch:
+ @${PERL} -pi -e 's|-L../lib -lgetopt||g' ${WRKSRC}/src/Makefile.in
+
post-install:
- ${MKDIR} ${DATADIR}
- @(cd ${WRKSRC}/doc ; \
- ${CP} *.html *.png ${DATADIR})
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DATADIR}
.endif
.include <bsd.port.mk>
diff --git a/x11/xdialog/pkg-plist b/x11/xdialog/pkg-plist
index 1c4906815c47..7fbb181ff6b7 100644
--- a/x11/xdialog/pkg-plist
+++ b/x11/xdialog/pkg-plist
@@ -2,6 +2,7 @@ bin/Xdialog
share/locale/de/LC_MESSAGES/Xdialog.mo
share/locale/es/LC_MESSAGES/Xdialog.mo
share/locale/fr/LC_MESSAGES/Xdialog.mo
+share/locale/hu/LC_MESSAGES/Xdialog.mo
share/locale/ru/LC_MESSAGES/Xdialog.mo
%%PORTDOCS%%share/xdialog/2ranges.png
%%PORTDOCS%%share/xdialog/authors.html