Solved Creating a package from source

I have a project source for which I want to create a binary pkg package. The projects uses autoconf so it can be compiled/installed with ./configure, make, make install.

For this project, I would create a pkg package such a way I can install its files, then remove them later, like a normal port package. I tried to write a Makefile based on the one of zsh, but failed miserably.

Let's say I have a source tarball, which is for example prjsrc.tar.gz, that contains the source code that can be compiled and installed with ./configure, make, make install. How I can create a package to trace the installed files of prjsrc on my system?
 
Ok solved! Here is my Makefile

Makefile:
[B]PORTNAME[/B]=    prjsrc
MASTER_SITES=   file:///${HOME}/port/prjsrc
DISTDIR=        ${HOME}
PORTVERSION=    0.13.1
CATEGORIES=    x11
DISTFILES=      prjsrc-0.13.1.tar.bz2

LICENSE=    GPLv2

GNU_CONFIGURE=    yes
INSTALL_TARGET=    install-strip
USES=        gmake libtool pathfix pkgconfig gettext-tools

USE_GNOME=    glib20 intltool intlhack
USE_LDCONFIG=    yes

Setting PORTNAME and DISTDIR did the trick.
 
Back
Top