Bug 187756 - multimedia/kissdx: Fix build on -current
Summary: multimedia/kissdx: Fix build on -current
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-19 18:40 UTC by tkato432
Modified: 2014-05-18 06:00 UTC (History)
0 users

See Also:


Attachments
file.diff (2.43 KB, patch)
2014-03-19 18:40 UTC, tkato432
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tkato432 2014-03-19 18:40:06 UTC
- Fix build on -current
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2014-03-19 18:40:30 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2014-05-18 05:55:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2014-05-18 05:55:44 UTC
Author: miwi
Date: Sun May 18 04:55:41 2014
New Revision: 354390
URL: http://svnweb.freebsd.org/changeset/ports/354390
QAT: https://qat.redports.org/buildarchive/r354390/

Log:
  - Fix build with clang
  - Stage support
  
  PR:		187756
  Submitted by:	ports fury

Modified:
  head/multimedia/kissdx/Makefile

Modified: head/multimedia/kissdx/Makefile
==============================================================================
--- head/multimedia/kissdx/Makefile	Sun May 18 04:23:39 2014	(r354389)
+++ head/multimedia/kissdx/Makefile	Sun May 18 04:55:41 2014	(r354390)
@@ -16,48 +16,44 @@ LIB_DEPENDS=	libgd.so:${PORTSDIR}/graphi
 		libjpeg.so:${PORTSDIR}/graphics/jpeg \
 		libdvdread.so:${PORTSDIR}/multimedia/libdvdread
 
-USES=		iconv
-USE_DOS2UNIX=	yes
-USE_GCC=	any			# XXX: uses nested functions
+USES=		compiler:nestedfct dos2unix iconv
 MAKE_ENV=	FreeBSD=defined
 
-MAN1=		kissdx.1
 USE_RC_SUBR=	kissdx
 SUB_FILES=	pkg-message
 
-PLIST_FILES=	etc/kissdx.conf sbin/kissdx sbin/kissd-pretrigger \
-		sbin/kissd-posttrigger
 PORTDOCS=	README
-
-NO_STAGE=	yes
+PLIST_FILES=	etc/kissdx.conf man/man1/kissdx.1.gz  \
+		sbin/kissd-posttrigger sbin/kissd-pretrigger sbin/kissdx
 
 OPTIONS_DEFINE=	DOCS
 
-.include <bsd.port.options.mk>
-
 post-patch:
-	@${REINPLACE_CMD} -e 's|Linux|Unix| ; s|/etc/|${PREFIX}&|' \
-		${WRKSRC}/kissdx.1
-	@${REINPLACE_CMD} -e 's|/etc/|${PREFIX}&|' ${WRKSRC}/config.c
-	@${RM} ${WRKSRC}/kissdx.o
+	@${REINPLACE_CMD} -e \
+		's|Linux|Unix| ; \
+		 s|/etc/|${PREFIX}&|' ${WRKSRC}/kissdx.1
+	@${REINPLACE_CMD} -e \
+		's|/etc/|${PREFIX}&|' ${WRKSRC}/config.c
 # Fix parallel (-jX) builds: sanitize dependencies
-	@${REINPLACE_CMD} -e 's|^\.o :|${PORTNAME}: $$(OBJS)| ; \
-		/^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile
+	@${REINPLACE_CMD} -e \
+		's|-liconv|${ICONV_LIB}| ; \
+		 s|^\.o :|${PORTNAME}: $$(OBJS)| ; \
+		 /^all:/s| $$(OBJS)||' ${WRKSRC}/Makefile
+
+pre-build:
+	@${RM} -f ${WRKSRC}/kissdx.o
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/kissdx ${PREFIX}/sbin
-	${INSTALL_SCRIPT} ${WRKSRC}/kissd-pretrigger ${PREFIX}/sbin
-	${INSTALL_SCRIPT} ${WRKSRC}/kissd-posttrigger ${PREFIX}/sbin
-	${INSTALL_DATA} ${WRKSRC}/kissdx.conf ${PREFIX}/etc
-	${INSTALL_MAN} ${WRKSRC}/kissdx.1 ${MANPREFIX}/man/man1
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
-
-post-install:
-	@${ECHO_MSG}
-	@${CAT} ${PKGMESSAGE}
-	@${ECHO_MSG}
+	(cd ${WRKSRC} && ${INSTALL_PROGRAM} kissdx \
+		${STAGEDIR}${PREFIX}/sbin)
+	(cd ${WRKSRC} && ${INSTALL_SCRIPT} kissd-pretrigger kissd-posttrigger \
+		${STAGEDIR}${PREFIX}/sbin)
+	(cd ${WRKSRC} && ${INSTALL_MAN} kissdx.1 \
+		${STAGEDIR}${MANPREFIX}/man/man1)
+	(cd ${WRKSRC} && ${INSTALL_DATA} kissdx.conf \
+		${STAGEDIR}${PREFIX}/etc)
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC} && ${INSTALL_DATA} README \
+		${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"