On Nov 14 19:39:59, anth...@anjbe.name wrote:
> Stuart Henderson writes:
> > >  do-build:
> > > - cd ${WRKSRC} && \
> > > + cd ${WRKSRC}/oggtag && \
> > >           ${CC} ${CFLAGS} -o oggtag oggtag.c vcedit.c \
> > >           -I${LOCALBASE}/include -L${LOCALBASE}/lib ${LIBS}
> > >  
> > >  do-install:
> > > - ${INSTALL_PROGRAM} ${WRKSRC}/oggtag ${PREFIX}/bin
> > > - ${INSTALL_MAN} ${WRKSRC}/oggtag.1 ${PREFIX}/man/man1
> > > + ${INSTALL_PROGRAM} ${WRKSRC}/oggtag/oggtag ${PREFIX}/bin
> > > + ${INSTALL_MAN} ${WRKSRC}/oggtag/oggtag.1 ${PREFIX}/man/man1
> 
> You should remove the WRKDIST=${WRKDIR} line instead.

That fails for me. Did I missunderstand?

        Jan


$ make
===>  Building for oggtag-1.0.2
cd /usr/ports/pobj/oggtag-1.0.2/oggtag_1.0.2 &&  cc -O2 -pipe   -o oggtag 
oggtag.c vcedit.c  -I/usr/local/include -L/usr/local/lib -lvorbis -logg -lm
cc: error: no such file or directory: 'oggtag.c'
cc: error: no such file or directory: 'vcedit.c'
*** Error 1 in . (Makefile:30 'do-build')
*** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2724 
'/usr/ports/pobj/oggtag-1.0.2/.build_done')
*** Error 1 in /usr/ports/audio/oggtag 
(/usr/ports/infrastructure/mk/bsd.port.mk:2425 'all')

$ cat Makefile
# $OpenBSD: Makefile,v 1.12 2015/01/22 21:17:46 naddy Exp $
COMMENT=        command-line editor for tags in Ogg Vorbis files

DISTNAME=       oggtag_1.0.2
PKGNAME=        ${DISTNAME:S/_/-/}
CATEGORIES=     audio

HOMEPAGE=       http://oggtag.sourceforge.net/

MAINTAINER=     Julian Leyh <jul...@vgai.de>

# GPLv2
PERMIT_PACKAGE_CDROM=   Yes

WANTLIB=                c m ogg>=5 vorbis>=3

MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=oggtag/}
EXTRACT_SUFX=   .tgz

LIB_DEPENDS=    audio/libogg \
                audio/libvorbis

NO_TEST=        Yes

LIBS=           -lvorbis -logg -lm

do-build:
        cd ${WRKSRC} && \
                ${CC} ${CFLAGS} -o oggtag oggtag.c vcedit.c \
                -I${LOCALBASE}/include -L${LOCALBASE}/lib ${LIBS}

do-install:
        ${INSTALL_PROGRAM} ${WRKSRC}/oggtag ${PREFIX}/bin
        ${INSTALL_MAN} ${WRKSRC}/oggtag.1 ${PREFIX}/man/man1

.include <bsd.port.mk>

Reply via email to