2008-09-23 23:19:03 +02:00
|
|
|
# Ports collection makefile for: asusoled
|
|
|
|
# Date created: 2008-09-11
|
|
|
|
# Whom: Jung-uk Kim <jkim@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= asusoled
|
|
|
|
PORTVERSION= 0.10
|
2012-06-01 07:26:28 +02:00
|
|
|
PORTREVISION= 7
|
2008-09-23 23:19:03 +02:00
|
|
|
CATEGORIES= sysutils
|
2009-02-28 00:43:57 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= jkim
|
2008-09-23 23:19:03 +02:00
|
|
|
|
|
|
|
MAINTAINER= jkim@FreeBSD.org
|
|
|
|
COMMENT= Utility for ASUS USB OLED Display
|
|
|
|
|
|
|
|
RUN_DEPENDS= ${FONTDIR}/TTF/luxisr.ttf:${PORTSDIR}/x11-fonts/font-bh-ttf
|
|
|
|
|
|
|
|
USE_SDL= image sdl ttf
|
|
|
|
USE_RC_SUBR= asusoled.sh oled_clock.sh
|
|
|
|
|
|
|
|
PORTDATA= asus.png asus_clock.png
|
|
|
|
PORTDOCS= README.FreeBSD
|
|
|
|
PLIST_FILES= sbin/asusoled
|
|
|
|
SUB_FILES= asusoled.sh oled_clock.sh pkg-message
|
|
|
|
|
|
|
|
MAKE_ARGS+= TTF_FONT=${FONTDIR}/TTF/luxisr.ttf
|
|
|
|
|
|
|
|
FONTDIR?= ${LOCALBASE}/lib/X11/fonts
|
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 800069
|
|
|
|
LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb
|
|
|
|
.endif
|
|
|
|
|
2008-09-23 23:19:03 +02:00
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDATA)
|
|
|
|
@${MKDIR} ${DATADIR}
|
|
|
|
.for i in ${PORTDATA}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/data/${i} ${DATADIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${CAT} ${PKGMESSAGE} > ${WRKSRC}/README.FreeBSD
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for i in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
@${ECHO}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
@${ECHO}
|
|
|
|
|
2009-03-09 18:15:43 +01:00
|
|
|
.include <bsd.port.post.mk>
|