Lewis ingraham <louise9...@gmail.com> writes: > Hello I am trying to port playerctl version 2.3.1 on OpenBSD and I get an > error when I try to do a "make makesum" on step 5 of Porting Checklist in > OBSD documentation.
Sometimes is useful to look at how other similar ports are doing. Don't be afraid of grepping /usr/ports and read how other ports do stuff. Anyway > [...] > > # What port/package will be created > # > # DISTNAME should not include suffix (like .tar.gz .tgz .tar.bz2 etc.) > DISTNAME = playerctl-2.3.1 > # PKGNAME defaults to DISTNAME unless changed > #PKGNAME = ??? > #PKGNAME-foo = ??? for multi packages > > PORTNAME = playerctl > DISTVERSION = 2.3.1 There are multiple things wrong here: - where did you found PORTNAME and DISTVERSION? Hint: probably on FreeBSD. You can't read the documentation for the port system of one BSD and apply it on another one. In case of OpenBSD every variable is described at length in bsd.port.mk(5) - DISTNAME usually requires the usage of MASTER_SITES to tell the port infrastructure where to fetch stuff - in cases like this, where the project is hosted at github and upstream doesn't provide a distribution tarball (there's only the auto-generated one from github) you can (usually) skip DISTNAME, PKGNAME, MASTER_SITES etc and just set the GH_* variables below. GH_ACCOUNT shoudl be altdesktop, GH_PROJECT playerctl and GH_TAGNAME v2.3.1. you can grep for 'GH_' in the port tree makefiles to have countless examples of how to use those variables. > # > # github: > # /releases/ -> preferred. ignore GH_*, just use MASTER_SITES and DISTNAME. > # /archive/ -> GH_ACCOUNT and GH_PROJECT, plus either GH_TAGNAME or > GH_COMMIT. > # > # set DISTNAME if using GH_COMMIT, or if using GH_TAGNAME and the tag is not > in > # the format "v1.00" or "1.00". > # > #GH_ACCOUNT = username > #GH_PROJECT = project > #GH_TAGNAME = 1.0 > #GH_COMMIT = abab123456789abacafeabab123123b1e4ble4bl > > # for any port that creates shared libraries. > # both libtool and cmake automatically set filenames based on this variable. > # for libtool- or cmake-based ports, have a look at WRKBUILD/shared_libs.log > #SHARED_LIBS = ??? 0.0 > > # the category used in the directory name, /usr/ports/<category>/portname, > # must be included and listed first. > CATEGORIES = mystuff/playerctl mystuff/playerctl is not a valid category. It should be `multimedia' or maybe even better `audio', and the port should either be in /usr/ports/audio/playerctl or /usr/ports/mystuff/audio/playerctl. /usr/ports/mystuff should "mirror" the structure of /usr/ports > # https preferred for HOMEPAGE > #HOMEPAGE = ??? URL btw, HOMEPAGE get also sets by default by the GH_* variables.