mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Support USE_GITHUB
- Support ncurses USES macro - Add LICENSE PR: 187761 Submitted by: Ports Fury
This commit is contained in:
parent
5dfc28222d
commit
cda57aad98
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354305
@ -5,25 +5,34 @@ PORTNAME= tty-clock
|
||||
PORTVERSION= 2.0.0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://github.com/xorg62/${PORTNAME}/tarball/
|
||||
DISTNAME= a82fd71
|
||||
EXTRACT_SUFX= # none
|
||||
MASTER_SITES= GH
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Terminal based clock
|
||||
|
||||
WRKSRC= "${WRKDIR}/xorg62-${PORTNAME}-${DISTNAME}"
|
||||
LICENSE= BSD
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= xorg62
|
||||
GH_TAGNAME= ${GH_COMMIT}
|
||||
GH_COMMIT= a82fd71
|
||||
|
||||
USES= ncurses
|
||||
ALL_TARGET= tty-clock
|
||||
|
||||
PLIST_FILES= bin/tty-clock
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local/|${PREFIX}/|' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's|CFLAGS =|CFLAGS \+=|' ${WRKSRC}/Makefile
|
||||
@${REINPLACE_CMD} -e 's|LDFLAGS =|LDFLAGS \+=|' ${WRKSRC}/Makefile
|
||||
|
||||
do-build:
|
||||
cd ${WRKSRC} && ${MAKE}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/tty-clock ${STAGEDIR}${PREFIX}/bin
|
||||
@${REINPLACE_CMD} -e \
|
||||
'/^CC/s| =| ?=| ; \
|
||||
s|/usr/local|$${PREFIX}| ; \
|
||||
/^CFLAGS/s| =| +=| ; \
|
||||
s|-Wall -g|-Wall| ; \
|
||||
/^LDFLAGS/s| =| +=| ; \
|
||||
/@echo /s|^|#| ; \
|
||||
s|@$${CC} |$${CC} | ; \
|
||||
s|@cp |$${BSD_INSTALL_PROGRAM} | ; \
|
||||
s| $${INSTALLPATH}| $${DESTDIR}$${INSTALLPATH}| ; \
|
||||
/@chmod /s|^|#|' ${WRKSRC}/Makefile
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (a82fd71) = 80fb9df9d257c73669c9363bc84823d9c42033e39f499d52abd74a698a4e5866
|
||||
SIZE (a82fd71) = 5033
|
||||
SHA256 (tty-clock-2.0.0.tar.gz) = 80fb9df9d257c73669c9363bc84823d9c42033e39f499d52abd74a698a4e5866
|
||||
SIZE (tty-clock-2.0.0.tar.gz) = 5033
|
||||
|
Loading…
Reference in New Issue
Block a user