diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile index 130974eb5932..42e900d05985 100644 --- a/misc/getopt/Makefile +++ b/misc/getopt/Makefile @@ -15,10 +15,8 @@ CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -lintl MAKE_ENV+= LIBCGETOPT=0 -MAN1= getopt.1 DOCS= Changelog README -NO_STAGE= yes .include post-patch: @@ -26,8 +24,8 @@ post-patch: .if ${PORT_OPTIONS:MDOCS} post-install: - @${MKDIR} ${DOCSDIR} - @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/misc/getopt/pkg-plist b/misc/getopt/pkg-plist index bf80ae576161..365a28d3ac18 100644 --- a/misc/getopt/pkg-plist +++ b/misc/getopt/pkg-plist @@ -27,3 +27,4 @@ share/locale/uk/LC_MESSAGES/getopt.mo share/locale/vi/LC_MESSAGES/getopt.mo share/locale/zh_CN/LC_MESSAGES/getopt.mo share/locale/zh_TW/LC_MESSAGES/getopt.mo +man/man1/getopt.1.gz