aboutsummaryrefslogtreecommitdiffstats
path: root/misc/gplink/Makefile
blob: 33636aeb4372de4e66a46b17f73ecea2753772f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    gplink
# Date created:             Sun Dec  5 23:17:44 CET 2004
# Whom:                 king@v2project.com
#
# $FreeBSD$
#

PORTNAME=   gplink
PORTVERSION=    1.5
CATEGORIES= misc
MASTER_SITES=   http://gp2x.org/gp32/gplink/

MAINTAINER= ports@FreeBSD.org
COMMENT=    A GP32 USB linker tool

USE_GMAKE=  yes
WRKSRC=     ${WRKDIR}/${DISTNAME}/src

PLIST_FILES=    bin/gplink

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 800069
LIB_DEPENDS+=   usb-0.1.8:${PORTSDIR}/devel/libusb
.endif

post-patch:
.if ${OSVERSION} >= 800069
    @${REINPLACE_CMD} -E -e 's,`libusb-config --cflags`,,g' \
        -e 's,`libusb-config --libs`,-lusb,g' \
        ${WRKSRC}/Makefile
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/gplink ${PREFIX}/bin

.include <bsd.port.post.mk>