Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 07:40:14 +0000 (UTC)
From:      Emanuel Haupt <ehaupt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r350061 - head/mail/hbiff
Message-ID:  <201404040740.s347eEGh054079@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ehaupt
Date: Fri Apr  4 07:40:14 2014
New Revision: 350061
URL: http://svnweb.freebsd.org/changeset/ports/350061
QAT: https://qat.redports.org/buildarchive/r350061/

Log:
  - Support staging
  - Respect CC
  - Respect CFLAGS
  - Modernize port

Deleted:
  head/mail/hbiff/pkg-plist
Modified:
  head/mail/hbiff/Makefile

Modified: head/mail/hbiff/Makefile
==============================================================================
--- head/mail/hbiff/Makefile	Fri Apr  4 06:44:55 2014	(r350060)
+++ head/mail/hbiff/Makefile	Fri Apr  4 07:40:14 2014	(r350061)
@@ -6,21 +6,24 @@ PORTVERSION=	1.2
 PORTREVISION=	2
 CATEGORIES=	mail
 MASTER_SITES=	ftp://nuxi.ucdavis.edu/pub/misc/  \
-		${MASTER_SITE_LOCAL}
+		LOCAL
 MASTER_SITE_SUBDIR=	obrien
 
 MAINTAINER=	obrien@FreeBSD.org
 COMMENT=	A replacement for xbiff that handles popup window with mail headers
 
 USE_XORG=	x11
-MAN1=		hbiff.1
 
-NO_STAGE=	yes
+CFLAGS+=	-I${LOCALBASE}/include -L${LOCALBASE}/lib
+LDFLAGS+=	-lX11
+
+PLIST_FILES=	bin/hbiff man/man1/hbiff.1.gz
+
 do-build:
-	cd ${WRKSRC} ; cc -I${LOCALBASE}/include hbiff.c -L${LOCALBASE}/lib -lX11
+	${CC} ${CFLAGS} ${LDFLAGS} ${WRKSRC}/hbiff.c -o ${WRKSRC}/${PORTNAME}
 
 do-install:
-	@${INSTALL_PROGRAM} ${WRKSRC}/a.out ${PREFIX}/bin/hbiff
-	@cd ${WRKSRC} ; ${INSTALL_MAN} ${MAN1} ${PREFIX}/man/man1
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404040740.s347eEGh054079>